Class: RanchHand::Base
- Inherits:
-
Object
- Object
- RanchHand::Base
- Defined in:
- lib/ranch_hand/base.rb
Class Method Summary collapse
Class Method Details
.init ⇒ Object
10 11 12 13 14 |
# File 'lib/ranch_hand/base.rb', line 10 def self.init RanchHand::Logger.info("initializing ranch-hand for project") RanchHand::Config.create RanchHand::Logger.info("initialization complete") end |
.setup ⇒ Object
3 4 5 6 7 8 |
# File 'lib/ranch_hand/base.rb', line 3 def self.setup RanchHand::Logger.info("setting up ranch-hand") FileUtils.mkdir_p(RanchHand::RANCH_HAND_HOME) File.new(RanchHand::STORE_FILE, 'w+', 0640) RanchHand::Logger.info("complete") end |