Class: Harvixture::Preparer
- Inherits:
-
Object
- Object
- Harvixture::Preparer
- Defined in:
- lib/harvixture/preparer.rb
Instance Attribute Summary collapse
-
#rails_root ⇒ Object
readonly
Returns the value of attribute rails_root.
Class Method Summary collapse
-
.do_it!(rails_root) ⇒ Object
Install the necessary files on the rails project.
Instance Method Summary collapse
-
#initialize(rails_root) ⇒ Preparer
constructor
A new instance of Preparer.
Constructor Details
#initialize(rails_root) ⇒ Preparer
Returns a new instance of Preparer.
11 12 13 14 15 |
# File 'lib/harvixture/preparer.rb', line 11 def initialize(rails_root) @rails_root = rails_root create_environment_harvixture update_database_yml end |
Instance Attribute Details
#rails_root ⇒ Object (readonly)
Returns the value of attribute rails_root.
10 11 12 |
# File 'lib/harvixture/preparer.rb', line 10 def rails_root @rails_root end |
Class Method Details
.do_it!(rails_root) ⇒ Object
Install the necessary files on the rails project
6 7 8 |
# File 'lib/harvixture/preparer.rb', line 6 def do_it!(rails_root) self.new(rails_root) end |