Sha256: 53a42874fc82c4f259e20e65f80e823fe7ad13c7244ebe6a240ae983ee0733ee

Contents?: true

Size: 363 Bytes

Versions: 1

Compression:

Stored size: 363 Bytes

Contents

module Roll

  # Show environment.
  class CommandEnv < Command

    #
    def setup
      op.banner = "Usage: roll env [NAME]"
      op.separator "Show current environment."
    end

    #
    def call
      env = Roll.env(*args)
      puts env.name + ':'
      env.lookup.each do |(path, depth)|
        puts "- #{path} #{depth}"
      end
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
roll-1.2.0 lib/roll/commands/env.rb