Module: AnotherBrick::Configuration
- Included in:
- AnotherBrick
- Defined in:
- lib/another_brick/configuration.rb
Instance Attribute Summary collapse
-
#bricklayer_server ⇒ Object
Returns the value of attribute bricklayer_server.
-
#bricklayer_tries ⇒ Object
Returns the value of attribute bricklayer_tries.
-
#deploy_server ⇒ Object
Returns the value of attribute deploy_server.
-
#deploy_user ⇒ Object
Returns the value of attribute deploy_user.
-
#max_tries ⇒ Object
Returns the value of attribute max_tries.
-
#package_name ⇒ Object
Returns the value of attribute package_name.
-
#tag ⇒ Object
Returns the value of attribute tag.
Instance Method Summary collapse
Instance Attribute Details
#bricklayer_server ⇒ Object
Returns the value of attribute bricklayer_server.
3 4 5 |
# File 'lib/another_brick/configuration.rb', line 3 def bricklayer_server @bricklayer_server end |
#bricklayer_tries ⇒ Object
Returns the value of attribute bricklayer_tries.
3 4 5 |
# File 'lib/another_brick/configuration.rb', line 3 def bricklayer_tries @bricklayer_tries end |
#deploy_server ⇒ Object
Returns the value of attribute deploy_server.
3 4 5 |
# File 'lib/another_brick/configuration.rb', line 3 def deploy_server @deploy_server end |
#deploy_user ⇒ Object
Returns the value of attribute deploy_user.
3 4 5 |
# File 'lib/another_brick/configuration.rb', line 3 def deploy_user @deploy_user end |
#max_tries ⇒ Object
Returns the value of attribute max_tries.
3 4 5 |
# File 'lib/another_brick/configuration.rb', line 3 def max_tries @max_tries end |
#package_name ⇒ Object
Returns the value of attribute package_name.
3 4 5 |
# File 'lib/another_brick/configuration.rb', line 3 def package_name @package_name end |
#tag ⇒ Object
Returns the value of attribute tag.
3 4 5 |
# File 'lib/another_brick/configuration.rb', line 3 def tag @tag end |
Instance Method Details
#load_configuration(options = {}) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/another_brick/configuration.rb', line 6 def load_configuration( = {}) self.bricklayer_server = [:bricklayer] self.package_name = [:name] self.deploy_server = [:server] self.deploy_user = [:user] self.max_tries = [:max_tries].to_i self.bricklayer_tries = [:bricklayer_tries].to_i self.tag = [:tag] @verbose = [:verbose] RestClient.proxy = ENV['http_proxy'] end |
#verbose? ⇒ Boolean
18 19 20 |
# File 'lib/another_brick/configuration.rb', line 18 def verbose? @verbose end |