Class: Neetob::CLI::NeetoDeploy::ScheduledExports
- Defined in:
- lib/neetob/cli/neeto_deploy/scheduled_exports.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#app ⇒ Object
Returns the value of attribute app.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(app) ⇒ ScheduledExports
constructor
A new instance of ScheduledExports.
- #run ⇒ Object
Methods included from Utils
#camel_case_to_slug, #is_upper?, #symbolize_keys
Constructor Details
#initialize(app) ⇒ ScheduledExports
Returns a new instance of ScheduledExports.
9 10 11 12 |
# File 'lib/neetob/cli/neeto_deploy/scheduled_exports.rb', line 9 def initialize(app) super() @app = app end |
Instance Attribute Details
#app ⇒ Object
Returns the value of attribute app.
7 8 9 |
# File 'lib/neetob/cli/neeto_deploy/scheduled_exports.rb', line 7 def app @app end |
Instance Method Details
#run ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/neetob/cli/neeto_deploy/scheduled_exports.rb', line 14 def run result = `neetodeploy addon scheduled_exports_enabled -a #{app}` if Thread.current[:audit_mode] result else ui.success(result) end end |