lib/vendorificator/vendor/tool.rb in vendorificator-0.5.git.v0.4.0.60.g9c35209 vs lib/vendorificator/vendor/tool.rb in vendorificator-0.5.git.v0.4.0.63.g8e9d54d
- old
+ new
@@ -23,10 +23,11 @@
end
end
Dir.chdir(git.git_work_tree) do
system self.command or raise RuntimeError, "Command failed"
end
+ super
end
def git_add_extra_paths
specs.inject(super) do |rv, path|
rv << path
@@ -41,20 +42,22 @@
end
class Config
register_module :tool, Vendor::Tool
- def rubygems_bundler
+ def rubygems_bundler(&block)
tool 'rubygems',
:path => 'cache', # Hardcoded, meh
:specs => [ 'Gemfile', 'Gemfile.lock' ],
- :command => 'bundle package --all'
+ :command => 'bundle package --all',
+ &block
end
- def chef_berkshelf
+ def chef_berkshelf(&block)
tool 'cookbooks',
:path => 'cookbooks',
:specs => [ 'Berksfile', 'Berksfile.lock' ],
- :command => 'berks install --path vendor/cookbooks'
+ :command => 'berks install --path vendor/cookbooks',
+ &block
end
end
end