Class: Harvixture::Preparer

Inherits:
Object
  • Object
show all
Defined in:
lib/harvixture/preparer.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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_rootObject (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