class CapUtil::BundlerCmd
This defines a base utiltiy for building bundler commands to run.
Attributes
cmd[R]
Public Class Methods
new(cap, cmd, opts = nil)
click to toggle source
# File lib/cap-util/bundler_cmd.rb, line 12 def initialize(cap, cmd, opts = nil) opts ||= {} @cap = cap opts[:root] ||= :current_path opts[:env] ||= "" cmd_root = @cap.send(opts[:root]) @cmd = "cd #{cmd_root} && #{opts[:env]} bundle exec #{cmd}" end
Public Instance Methods
run()
click to toggle source
Calls superclass method
# File lib/cap-util/bundler_cmd.rb, line 24 def run; super(@cmd); end