Class: CraneRails::CLI
- Inherits:
-
Thor
- Object
- Thor
- CraneRails::CLI
- Includes:
- Thor::Actions
- Defined in:
- lib/crane_rails/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
7 8 9 |
# File 'lib/crane_rails/cli.rb', line 7 def self.source_root File.('../templates', __FILE__) end |
Instance Method Details
#bootstrap ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/crane_rails/cli.rb', line 12 def bootstrap # These two files set up a CoreOS vagrantfile for docker template 'Vagrantfile', 'Vagrantfile' template 'override-plugin.rb', 'override-plugin.rb' get 'https://raw.githubusercontent.com/shicholas/Dockerfile-rails/master/Gemfile', 'Gemfile' get 'https://raw.githubusercontent.com/shicholas/Dockerfile-rails/master/Gemfile.lock', 'Gemfile.lock' # Had to copy file because '#template' won't copy erb copy_file '../templates/database.yml', 'config/database.yml' template 'rails.yml', 'tmuxinator-sample.yml' template 'Guardfile', 'Guardfile' end |