lib/vendorificator/cli.rb in vendorificator-0.5.1 vs lib/vendorificator/cli.rb in vendorificator-0.5.2
- old
+ new
@@ -73,11 +73,15 @@
rescue DirtyRepoError
fail! 'Repository is not clean.'
end
desc :update, "Update installed vendor files"
+ method_option :pull, :type => :boolean, :default => false
+ method_option :push, :type => :boolean, :default => false
def update(*modules)
+ pull if options[:pull]
environment.sync options.merge(:segments => modules, :update => true)
+ push if options[:push]
rescue DirtyRepoError
fail! 'Repository is not clean.'
end
desc "status", "List known vendor modules and their status"