Sha256: a455806febca2430ffedbf43fffbcdf7e36b98224a1844478710891a72ccc0d3
Contents?: true
Size: 553 Bytes
Versions: 1
Compression:
Stored size: 553 Bytes
Contents
module Roll # List available environments. class CommandList < Command # def setup op.banner = "Usage: roll list" op.separator "List current environments." end # def call curr = Roll.env.name envs = Roll.list.sort #(*args) if envs.empty? puts "No environments." else puts envs.each do |env| if curr == env puts "=> #{env}" else puts " #{env}" end end puts end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
roll-1.2.0 | lib/roll/commands/list.rb |