Class: NeetoDeploy::CLI::Addon::ScheduledExportsSettings

Inherits:
Base
  • Object
show all
Includes:
Constants, Session
Defined in:
lib/neeto_deploy/cli/addon/scheduled_exports_settings.rb

Constant Summary

Constants included from Session

Session::CONSOLE_EXECUTABLE

Constants included from Constants

Constants::NEETO_DEPLOY_CLI_API_ADDON_URL

Instance Attribute Summary collapse

Attributes inherited from Base

#ui

Instance Method Summary collapse

Methods included from Session

#auth_headers, #console_executable_name, #json_auth_headers, #os, require_app_option, #send_delete_request, #send_get_request, #send_patch_request, #send_post_request

Methods included from Constants

#addon_url, #addons_url, #scheduled_exports_url

Methods inherited from Base

#create_config_dir

Constructor Details

#initialize(options) ⇒ ScheduledExportsSettings

Returns a new instance of ScheduledExportsSettings.



17
18
19
20
# File 'lib/neeto_deploy/cli/addon/scheduled_exports_settings.rb', line 17

def initialize(options)
  super()
  @app_slug = options[:app]
end

Instance Attribute Details

#app_slugObject (readonly)

Returns the value of attribute app_slug.



15
16
17
# File 'lib/neeto_deploy/cli/addon/scheduled_exports_settings.rb', line 15

def app_slug
  @app_slug
end

Instance Method Details

#runObject



22
23
24
25
26
27
# File 'lib/neeto_deploy/cli/addon/scheduled_exports_settings.rb', line 22

def run
  ui.execute_with_loading("Fetching info...") do
    @response = send_get_request(scheduled_exports_url(app_slug), { app_slug: })
  end
  print_output
end