Class: FlashFlow::Install
- Inherits:
-
Object
- Object
- FlashFlow::Install
- Defined in:
- lib/flash_flow/install.rb
Class Method Summary collapse
Class Method Details
permalink .example_file ⇒ Object
[View source]
14 15 16 |
# File 'lib/flash_flow/install.rb', line 14 def self.example_file "#{File.dirname(__FILE__)}/../../flash_flow.yml.erb.example" end |
permalink .install ⇒ Object
[View source]
5 6 7 8 9 10 11 12 |
# File 'lib/flash_flow/install.rb', line 5 def self.install FileUtils.mkdir 'config' unless Dir.exists?('config') dest_file = 'config/flash_flow.yml.erb' FileUtils.cp example_file, dest_file puts "Flash flow config file is in #{dest_file}" end |