Class: Slugbuilder::Configuration
- Inherits:
-
Object
- Object
- Slugbuilder::Configuration
- Defined in:
- lib/slugbuilder/configuration.rb
Instance Attribute Summary collapse
-
#base_dir ⇒ Object
Returns the value of attribute base_dir.
-
#buildpacks ⇒ Object
Returns the value of attribute buildpacks.
-
#cache_dir ⇒ Object
Returns the value of attribute cache_dir.
-
#git_service ⇒ Object
Returns the value of attribute git_service.
-
#heroku_stack ⇒ Object
Returns the value of attribute heroku_stack.
-
#output_dir ⇒ Object
Returns the value of attribute output_dir.
-
#protocol ⇒ Object
Returns the value of attribute protocol.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
22 23 24 25 26 27 28 29 30 |
# File 'lib/slugbuilder/configuration.rb', line 22 def initialize @base_dir = '/tmp/slugbuilder' @cache_dir = '/tmp/slugbuilder-cache' @output_dir = '.' @git_service = 'github.com' @protocol = 'https' @buildpacks = [] @heroku_stack = 'heroku-16' end |
Instance Attribute Details
#base_dir ⇒ Object
Returns the value of attribute base_dir.
19 20 21 |
# File 'lib/slugbuilder/configuration.rb', line 19 def base_dir @base_dir end |
#buildpacks ⇒ Object
Returns the value of attribute buildpacks.
19 20 21 |
# File 'lib/slugbuilder/configuration.rb', line 19 def buildpacks @buildpacks end |
#cache_dir ⇒ Object
Returns the value of attribute cache_dir.
19 20 21 |
# File 'lib/slugbuilder/configuration.rb', line 19 def cache_dir @cache_dir end |
#git_service ⇒ Object
Returns the value of attribute git_service.
19 20 21 |
# File 'lib/slugbuilder/configuration.rb', line 19 def git_service @git_service end |
#heroku_stack ⇒ Object
Returns the value of attribute heroku_stack.
19 20 21 |
# File 'lib/slugbuilder/configuration.rb', line 19 def heroku_stack @heroku_stack end |
#output_dir ⇒ Object
Returns the value of attribute output_dir.
19 20 21 |
# File 'lib/slugbuilder/configuration.rb', line 19 def output_dir @output_dir end |
#protocol ⇒ Object
Returns the value of attribute protocol.
19 20 21 |
# File 'lib/slugbuilder/configuration.rb', line 19 def protocol @protocol end |