Class: Figaro::CLI::Install
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Figaro::CLI::Install
- Includes:
- Thor::Actions
- Defined in:
- lib/figaro/cli/install.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
13 14 15 |
# File 'lib/figaro/cli/install.rb', line 13 def self.source_root File.("../install", __FILE__) end |
Instance Method Details
#create_configuration ⇒ Object
17 18 19 |
# File 'lib/figaro/cli/install.rb', line 17 def create_configuration copy_file("application.yml", [:path]) end |
#ignore_configuration ⇒ Object
21 22 23 24 25 26 27 28 29 |
# File 'lib/figaro/cli/install.rb', line 21 def ignore_configuration if File.exist?(".gitignore") append_to_file(".gitignore", <<-EOF) # Ignore application configuration /#{[:path]} EOF end end |