Class: Avm::EacWebappBase0::Instances::Runners::Deploy

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/eac_webapp_base0/instances/runners/deploy.rb

Instance Method Summary collapse

Instance Method Details

#deploy_classObject



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_optionsObject



37
38
39
40
41
42
# File 'lib/avm/eac_webapp_base0/instances/runners/deploy.rb', line 37

def deploy_options
  { 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

Returns:

  • (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

Returns:

  • (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

#runObject



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), deploy_options).run
  if result.error?
    fatal_error result.to_s
  else
    infov 'Result', result.label
  end
end