Skip to content
This repository has been archived by the owner on Sep 25, 2020. It is now read-only.

Commit

Permalink
Merge pull request #6 from wearerequired/composer-clear-cache
Browse files Browse the repository at this point in the history
composer:clear_cache task
  • Loading branch information
ocean90 authored Mar 20, 2017
2 parents c9291cb + 404b21b commit 32b5b27
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
3 changes: 2 additions & 1 deletion capistrano-required_tools.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ Gem::Specification.new do |spec|

spec.add_dependency "capistrano", "~> 3.6"
spec.add_dependency "slackistrano", "~> 3.1"
spec.add_dependency "capistrano-composer", "~> 0.0.6"

spec.add_development_dependency "bundler", "~> 1.13"
spec.add_development_dependency "rake", "~> 11.0"
end
end
3 changes: 2 additions & 1 deletion lib/capistrano/required_tools.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ module RequiredTools
end
end

require "capistrano/required_tools/slackistrano_messaging_colors"
require "capistrano/required_tools/slackistrano_messaging_colors"
require "capistrano/required_tools/composer.rb"
1 change: 1 addition & 0 deletions lib/capistrano/required_tools/composer.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
load File.expand_path('../tasks/composer.rake', __FILE__)
9 changes: 9 additions & 0 deletions lib/capistrano/required_tools/tasks/composer.rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace :composer do

desc <<-DESC
Deletes all content from Composer's cache directories.
DESC
task :clear_cache do
invoke "composer:run", "clear-cache"
end
end
2 changes: 1 addition & 1 deletion lib/capistrano/required_tools/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Capistrano
module RequiredTools
VERSION = "0.1.0"
VERSION = "0.2.0.alpha"
end
end

0 comments on commit 32b5b27

Please sign in to comment.