lib/neptuno/tty/file.rb in neptuno-1.0.6 vs lib/neptuno/tty/file.rb in neptuno-1.0.7
- old
+ new
@@ -33,8 +33,16 @@
return @base_path = pwd if Dir.children(pwd).include?('neptuno.yml')
pwd = pwd.split('/')[0..-2].join('/')
end
end
+
+ def make_service_files(services)
+ services.each do |service|
+ `cd #{neptuno_path} && mkdir -p environments/#{service} procfiles/#{service} dockerfiles/#{service}`
+ `cd #{neptuno_path} && touch environments/#{service}/local_env`
+ `cd #{neptuno_path} && touch dockerfiles/#{service}/Dockerfile`
+ end
+ end
end
end
end