class Ecogem::Cli::Commands::Install
Public Class Methods
new(args)
click to toggle source
# File lib/ecogem/cli/commands/install.rb, line 7 def initialize(args) @args = args end
Public Instance Methods
execute()
click to toggle source
# File lib/ecogem/cli/commands/install.rb, line 11 def execute ::Ecogem.new_workspace(@args) do |ws| gemfile = "--gemfile=#{ws.gemfile.write.inspect}" ws.gitsfile.save args = [*@args.bundler_args, gemfile].join(' ') command = "bundle install #{args}" system command end end