Sha256: 3266a953d799f06c9350c2e03ac529c7d2ae524b8c205eef0716650e2536653f

Contents?: true

Size: 359 Bytes

Versions: 6

Compression:

Stored size: 359 Bytes

Contents

module Rebuild::CLI
  class RbldCheckoutCommand < Command
    def initialize
      @usage = "[OPTIONS] [ENVIRONMENT[:TAG]]"
      @description = "Discard environment modifications"
    end

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

Version data entries

6 entries across 6 versions & 1 rubygems

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