Class: OceanPackage::Config
- Inherits:
-
Object
- Object
- OceanPackage::Config
- Defined in:
- lib/ocean_package/config.rb
Instance Attribute Summary collapse
-
#configuration ⇒ Object
Returns the value of attribute configuration.
-
#scheme ⇒ Object
Returns the value of attribute scheme.
-
#workspace_path ⇒ Object
Returns the value of attribute workspace_path.
Instance Method Summary collapse
-
#initialize(params = []) ⇒ Config
constructor
attr_accessor :ding_enabled attr_accessor :ding_token.
- #valid ⇒ Object
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
#configuration ⇒ Object
Returns the value of attribute configuration.
8 9 10 |
# File 'lib/ocean_package/config.rb', line 8 def configuration @configuration end |
#scheme ⇒ Object
Returns the value of attribute scheme.
7 8 9 |
# File 'lib/ocean_package/config.rb', line 7 def scheme @scheme end |
#workspace_path ⇒ Object
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
#valid ⇒ Object
35 36 37 |
# File 'lib/ocean_package/config.rb', line 35 def valid end |