Class: Avm::Launcher::Publish::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/launcher/publish/base.rb

Instance Method Summary collapse

Instance Method Details

#checkObject



20
21
22
23
24
25
26
# File 'lib/avm/launcher/publish/base.rb', line 20

def check
  s = check_with_rescue
  ::Avm::Launcher::Context.current.instance_manager.publish_state_set(
    instance, stereotype.stereotype_name, s.status
  )
  s
end

#runObject



12
13
14
15
16
17
18
# File 'lib/avm/launcher/publish/base.rb', line 12

def run
  s = check
  info("Check: #{s}")
  return unless s.status == ::Avm::Launcher::Publish::CheckResult::STATUS_PENDING

  publish
end