Class: Preseason::Config::Heroku

Inherits:
Object
  • Object
show all
Includes:
Preseason::Config
Defined in:
lib/preseason/config/heroku.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Preseason::Colorize

#ask, #readme, #yes?

Methods included from GeneratorContext

#method_missing

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Preseason::GeneratorContext

Instance Attribute Details

#useObject

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_userObject



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

Returns:

  • (Boolean)


12
13
14
# File 'lib/preseason/config/heroku.rb', line 12

def use?
  use
end