Method: Fum::Commands::Status#execute
- Defined in:
- lib/fum/commands/status.rb
#execute(options) ⇒ Object
-
:type
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/fum/commands/status.rb', line 22 def execute() stage_name = [:stage_name] stage_decl = stage(@application.main_decl, stage_name) analyzer = StageAnalyzer.new(stage_decl) analyzer.analyze() envs = analyzer.env_map.values unless envs.empty? envs.each { |env| puts "#{env[:env].name} (#{env[:state]})" } else puts "No environments found for stage #{stage_name}." end end |