Sha256: 263aeb5a70692f32556ad9d54f9017e9e5a3e37b638cce8e999e96ad3348a33c

Contents?: true

Size: 343 Bytes

Versions: 8

Compression:

Stored size: 343 Bytes

Contents

module Rebuild::CLI
  class RbldRmCommand < Command
    def initialize
      @usage = "rm [OPTIONS] [ENVIRONMENT[:TAG]]"
      @description = "Remove local environment"
    end

    def run(parameters)
      env = Environment.new( parameters[0] )
      rbld_log.info("Going to remove #{env}")
      engine_api.remove!( env )
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rbld-1.3.2 cli/lib/commands/rbld_rm.rb
rbld-1.3.1 cli/lib/commands/rbld_rm.rb
rbld-1.3.0 cli/lib/commands/rbld_rm.rb
rbld-1.2.0 cli/lib/commands/rbld_rm.rb
rbld-1.1.0 cli/lib/commands/rbld_rm.rb
rbld-1.0.2 cli/lib/commands/rbld_rm.rb
rbld-1.0.1 cli/lib/commands/rbld_rm.rb
rbld-1.0.0 cli/lib/commands/rbld_rm.rb