Class: Avm::EacWebappBase0::Instances::Runners::Deploy
- Inherits:
-
Object
- Object
- Avm::EacWebappBase0::Instances::Runners::Deploy
- Defined in:
- lib/avm/eac_webapp_base0/instances/runners/deploy.rb
Instance Method Summary collapse
- #deploy_class ⇒ Object
- #deploy_options ⇒ Object
- #remote_read? ⇒ Boolean
- #remote_write? ⇒ Boolean
- #run ⇒ Object
Instance Method Details
#deploy_class ⇒ Object
22 23 24 25 26 |
# File 'lib/avm/eac_webapp_base0/instances/runners/deploy.rb', line 22 def deploy_class runner_context.call(:stereotype_module).const_get('Instances').const_get('Deploy') rescue ::NameError runner_context.call(:stereotype_module).const_get('Deploy') end |
#deploy_options ⇒ Object
37 38 39 40 41 42 |
# File 'lib/avm/eac_webapp_base0/instances/runners/deploy.rb', line 37 def { reference: parsed.reference, appended_directories: ::Avm::PathString.paths(parsed.append_dirs), no_request_test: parsed.no_request_test?, remote_read: remote_read?, remote_write: remote_write? } end |
#remote_read? ⇒ Boolean
45 46 47 |
# File 'lib/avm/eac_webapp_base0/instances/runners/deploy.rb', line 45 def remote_read? !(parsed.no_remote_read? || parsed.no_remote?) end |
#remote_write? ⇒ Boolean
50 51 52 |
# File 'lib/avm/eac_webapp_base0/instances/runners/deploy.rb', line 50 def remote_write? !(parsed.no_remote_write? || parsed.no_remote?) end |
#run ⇒ Object
28 29 30 31 32 33 34 35 |
# File 'lib/avm/eac_webapp_base0/instances/runners/deploy.rb', line 28 def run result = deploy_class.new(runner_context.call(:instance), ).run if result.error? fatal_error result.to_s else infov 'Result', result.label end end |