Class: OceanPackage::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = []) ⇒ Config

attr_accessor :ding_enabled attr_accessor :ding_token



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/ocean_package/config.rb', line 13

def initialize(params = [])
  argv = CLAide::ARGV.new(params)

  @workspace_path = argv.option("workspace-path", "")
  puts "workspace_path: #{@workspace_path}"

  @scheme = argv.option("scheme", "")
  puts "scheme: #{@scheme}"

  @configuration = argv.option("configuration", "")
  puts "configuration: #{@configuration}"

  # @ding_enabled = argv.flag?("ding-enabled", false)
  # puts "ding_enabled: #{@ding_enabled}"
  #
  # @ding_token = argv.option("ding-token", "")
  # puts "ding_token: #{@ding_token}"



end

Instance Attribute Details

#configurationObject

Returns the value of attribute configuration.



8
9
10
# File 'lib/ocean_package/config.rb', line 8

def configuration
  @configuration
end

#schemeObject

Returns the value of attribute scheme.



7
8
9
# File 'lib/ocean_package/config.rb', line 7

def scheme
  @scheme
end

#workspace_pathObject

Returns the value of attribute workspace_path.



6
7
8
# File 'lib/ocean_package/config.rb', line 6

def workspace_path
  @workspace_path
end

Instance Method Details

#validObject



35
36
37
# File 'lib/ocean_package/config.rb', line 35

def valid

end