Class: CaptiveRelease::CapacitorConfig

Inherits:
Struct
  • Object
show all
Defined in:
lib/captive_release/config.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#build_workflowObject

Returns the value of attribute build_workflow

Returns:

  • (Object)

    the current value of build_workflow



20
21
22
# File 'lib/captive_release/config.rb', line 20

def build_workflow
  @build_workflow
end

Class Method Details

.from_hash(h) ⇒ Object



21
22
23
24
25
# File 'lib/captive_release/config.rb', line 21

def self.from_hash(h)
  return nil unless h

  new(build_workflow: h["build_workflow"] || "capacitor-build.yml")
end

Instance Method Details

#to_hObject



27
28
29
# File 'lib/captive_release/config.rb', line 27

def to_h
  { "build_workflow" => build_workflow }
end