Class: Scalarium::CLI
- Inherits:
-
Thor
- Object
- Thor
- Scalarium::CLI
- Defined in:
- lib/scalarium/cli.rb
Instance Method Summary collapse
Instance Method Details
#setup ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/scalarium/cli.rb', line 19 def setup # Add config/scalarium.yml to .gitignore puts "Adding config/scalarium.yml to .gitignore" File.open(".gitignore", "a+") do |file| if File.read(".gitignore").match(/config\/scalarium\.yml/) puts "\tLooks like you already have it. Moving on..." else file.write("\nconfig/scalarium.yml") end end # Create config/scalarium.yml puts "Creating config/scalarium.yml" write_config_yml # Create config/scalarium.yml.example puts "Creating config/scalarium.yml.example" write_config_yml(:example) end |