Class: Neetob::CLI::NeetoDeploy::ConfigVars::List
- Defined in:
- lib/neetob/cli/neeto_deploy/config_vars/list.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#apps ⇒ Object
Returns the value of attribute apps.
-
#sandbox ⇒ Object
Returns the value of attribute sandbox.
Attributes inherited from Base
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(apps, sandbox = false) ⇒ List
constructor
A new instance of List.
- #run ⇒ Object
Methods included from Utils
#camel_case_to_slug, #is_upper?, #symbolize_keys
Constructor Details
#initialize(apps, sandbox = false) ⇒ List
Returns a new instance of List.
12 13 14 15 16 |
# File 'lib/neetob/cli/neeto_deploy/config_vars/list.rb', line 12 def initialize(apps, sandbox = false) super() @apps = apps @sandbox = sandbox end |
Instance Attribute Details
#apps ⇒ Object
Returns the value of attribute apps.
10 11 12 |
# File 'lib/neetob/cli/neeto_deploy/config_vars/list.rb', line 10 def apps @apps end |
#sandbox ⇒ Object
Returns the value of attribute sandbox.
10 11 12 |
# File 'lib/neetob/cli/neeto_deploy/config_vars/list.rb', line 10 def sandbox @sandbox end |
Instance Method Details
#run ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/neetob/cli/neeto_deploy/config_vars/list.rb', line 18 def run matching_apps = find_all_matching_apps_or_repos(apps, :neetodeploy, sandbox) matching_apps.each do |app| ui.info("\nConfig of #{app}\n") ui.success(`neetodeploy env list -a #{app}`) end end |