Class: Preseason::Config::Heroku
- Inherits:
-
Object
- Object
- Preseason::Config::Heroku
- Includes:
- Preseason::Config
- Defined in:
- lib/preseason/config/heroku.rb
Instance Attribute Summary collapse
-
#use ⇒ Object
Returns the value of attribute use.
Instance Method Summary collapse
Methods included from Preseason::Colorize
Methods included from GeneratorContext
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Preseason::GeneratorContext
Instance Attribute Details
#use ⇒ Object
Returns the value of attribute use.
6 7 8 |
# File 'lib/preseason/config/heroku.rb', line 6 def use @use end |
Instance Method Details
#ask_user ⇒ Object
8 9 10 |
# File 'lib/preseason/config/heroku.rb', line 8 def ask_user self.use = yes? "Will this app be deployed to Heroku? [y/n]" end |
#use? ⇒ Boolean
12 13 14 |
# File 'lib/preseason/config/heroku.rb', line 12 def use? use end |