Class: Grifork::Config
- Inherits:
-
Object
- Object
- Grifork::Config
- Defined in:
- lib/grifork/config.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#branches ⇒ Object
readonly
Returns the value of attribute branches.
-
#grifork ⇒ Object
readonly
Returns the value of attribute grifork.
-
#griforkfile ⇒ Object
Returns the value of attribute griforkfile.
-
#hosts ⇒ Object
readonly
Returns the value of attribute hosts.
-
#local_task ⇒ Object
readonly
Returns the value of attribute local_task.
-
#log ⇒ Object
readonly
Returns the value of attribute log.
-
#remote_task ⇒ Object
readonly
Returns the value of attribute remote_task.
Instance Method Summary collapse
-
#initialize(args) ⇒ Config
constructor
A new instance of Config.
- #mode ⇒ Object
Constructor Details
#initialize(args) ⇒ Config
Returns a new instance of Config.
5 6 7 8 9 |
# File 'lib/grifork/config.rb', line 5 def initialize(args) args.each do |key, val| instance_variable_set("@#{key}", val) end end |
Instance Attribute Details
#branches ⇒ Object (readonly)
Returns the value of attribute branches.
2 3 4 |
# File 'lib/grifork/config.rb', line 2 def branches @branches end |
#grifork ⇒ Object (readonly)
Returns the value of attribute grifork.
2 3 4 |
# File 'lib/grifork/config.rb', line 2 def grifork @grifork end |
#griforkfile ⇒ Object
Returns the value of attribute griforkfile.
3 4 5 |
# File 'lib/grifork/config.rb', line 3 def griforkfile @griforkfile end |
#hosts ⇒ Object (readonly)
Returns the value of attribute hosts.
2 3 4 |
# File 'lib/grifork/config.rb', line 2 def hosts @hosts end |
#local_task ⇒ Object (readonly)
Returns the value of attribute local_task.
2 3 4 |
# File 'lib/grifork/config.rb', line 2 def local_task @local_task end |
#log ⇒ Object (readonly)
Returns the value of attribute log.
2 3 4 |
# File 'lib/grifork/config.rb', line 2 def log @log end |
#remote_task ⇒ Object (readonly)
Returns the value of attribute remote_task.
2 3 4 |
# File 'lib/grifork/config.rb', line 2 def remote_task @remote_task end |
Instance Method Details
#mode ⇒ Object
11 12 13 |
# File 'lib/grifork/config.rb', line 11 def mode @mode || :standalone end |