class Cyclid::API::Plugins::Bundler
“Bundler” plugin; wraps the command plugin to run commands under “bundle exec”
Public Class Methods
new(args = {})
click to toggle source
# File lib/cyclid/plugins/action/bundler.rb, line 27 def initialize(args = {}) args.symbolize_keys! # At a bare minimum there has to be a command to execute. raise 'a command action requires a command' unless args.include? :cmd # Prepend 'bundle exec' and pass it through to the 'command' plugin args[:cmd] = "bundle exec #{args[:cmd]}" plugin = Cyclid.plugins.find('command', Cyclid::API::Plugins::Action) @command = plugin.new(args) end
Public Instance Methods
perform(log)
click to toggle source
Reflect methods to the command plugin
# File lib/cyclid/plugins/action/bundler.rb, line 41 def perform(log) @command.perform(log) end
prepare(args)
click to toggle source
# File lib/cyclid/plugins/action/bundler.rb, line 45 def prepare(args) @command.prepare(args) end