Class: FlashFlow::Install

Inherits:
Object
  • Object
show all
Defined in:
lib/flash_flow/install.rb

Class Method Summary collapse

Class Method Details

.example_fileObject

[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

.installObject

[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