Sha256: 4b0bccbb35a56cb8d8c3a8afcf0f285265199039827d13a8a04b6c8386d551f4

Contents?: true

Size: 340 Bytes

Versions: 5

Compression:

Stored size: 340 Bytes

Contents

module Rebuild::CLI
  class RbldRmCommand < Command
    def initialize
      @usage = "[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

5 entries across 5 versions & 1 rubygems

Version Path
rbld-1.3.7 cli/lib/commands/rbld_rm.rb
rbld-1.3.6 cli/lib/commands/rbld_rm.rb
rbld-1.3.5 cli/lib/commands/rbld_rm.rb
rbld-1.3.4 cli/lib/commands/rbld_rm.rb
rbld-1.3.3 cli/lib/commands/rbld_rm.rb