13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# File 'lib/kamino/cli.rb', line 13
def rails
say "Setting VM to hostname #{Kamino.config.default_app_name} #{Kamino.config.default_host_ip}", :yellow
target = Dir.pwd
template File.join('rails', 'Berksfile.erb'), File.join(target, 'Berksfile')
template File.join('rails', 'Vagrantfile.erb'), File.join(target, 'Vagrantfile'), Kamino.config.options
append_file(File.join(target, 'Gemfile')) { "\n# Berkshelf manages your cookbooks like bundler\n# Define your OS dependencies in Berksfile\ngroup :kamino do\n gem 'berkshelf'\nend\n" }
append_file(File.join(target, '.gitignore')) { ".vagrant\n.vagrant.*\n" }
empty_directory File.join(target, 'vendor', 'cookbooks')
create_file File.join(target, 'vendor', 'cookbooks', '.keep'), ''
end
|