Class: Locomotive::Wagon::PullCommand
- Inherits:
-
Struct
- Object
- Struct
- Locomotive::Wagon::PullCommand
- Includes:
- ApiConcern, DeployFileConcern, InstrumentationConcern, SpinnerConcern
- Defined in:
- lib/locomotive/wagon/commands/pull_command.rb
Constant Summary collapse
- RESOURCES =
%w(site pages content_types content_entries snippets sections theme_assets translations content_assets).freeze
Instance Attribute Summary collapse
-
#env ⇒ Object
Returns the value of attribute env.
-
#options ⇒ Object
Returns the value of attribute options.
-
#path ⇒ Object
Returns the value of attribute path.
-
#shell ⇒ Object
Returns the value of attribute shell.
Class Method Summary collapse
Instance Method Summary collapse
Methods included from SpinnerConcern
Methods included from InstrumentationConcern
#instrument, #instrument_scope_name
Methods included from DeployFileConcern
#deploy_file, #read_deploy_settings, #write_deploy_settings
Methods included from ApiConcern
#api_client, #api_credentials, #api_host, #api_site_client, #connection_information_from_env_and_path
Instance Attribute Details
#env ⇒ Object
Returns the value of attribute env
14 15 16 |
# File 'lib/locomotive/wagon/commands/pull_command.rb', line 14 def env @env end |
#options ⇒ Object
Returns the value of attribute options
14 15 16 |
# File 'lib/locomotive/wagon/commands/pull_command.rb', line 14 def @options end |
#path ⇒ Object
Returns the value of attribute path
14 15 16 |
# File 'lib/locomotive/wagon/commands/pull_command.rb', line 14 def path @path end |
#shell ⇒ Object
Returns the value of attribute shell
14 15 16 |
# File 'lib/locomotive/wagon/commands/pull_command.rb', line 14 def shell @shell end |
Class Method Details
.pull(env, path, options, shell) ⇒ Object
23 24 25 |
# File 'lib/locomotive/wagon/commands/pull_command.rb', line 23 def self.pull(env, path, , shell) self.new(env, path, , shell).pull end |
Instance Method Details
#pull ⇒ Object
27 28 29 30 31 32 33 34 |
# File 'lib/locomotive/wagon/commands/pull_command.rb', line 27 def pull if [:verbose] PullLogger.new _pull else show_wait_spinner('Pulling...') { _pull } end end |