Module: OpsWorks::CLI::Helpers::Options
- Included in:
- Agent
- Defined in:
- lib/opsworks/cli/helpers/options.rb
Instance Method Summary collapse
Instance Method Details
#parse_stacks(options = {}) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/opsworks/cli/helpers/options.rb', line 5 def parse_stacks( = {}) if [:stack] OpsWorks::Stack.all.select do |stack| [:stack].include?(stack.name) end else [:active] ? OpsWorks::Stack.active : OpsWorks::Stack.all end end |