Sha256: 31205f0916d55074b2af9c634f021a9f26bbfa8a33f40483ffb8fab7a2bace18

Contents?: true

Size: 368 Bytes

Versions: 8

Compression:

Stored size: 368 Bytes

Contents

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

8 entries across 8 versions & 1 rubygems

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