kstrano 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/kumafy +3 -2
- metadata +1 -1
data/bin/kumafy
CHANGED
@@ -7,6 +7,8 @@ require 'net/http'
|
|
7
7
|
require 'net/https'
|
8
8
|
require 'uri'
|
9
9
|
|
10
|
+
HighLine.track_eof = false
|
11
|
+
|
10
12
|
DEPLOY_GIST = "https://raw.github.com/Kunstmaan/kStrano/master/config/deploy.rb"
|
11
13
|
PRODUCTION_GIST = "https://raw.github.com/Kunstmaan/kStrano/master/config/production.rb"
|
12
14
|
STAGING_GIST = "https://raw.github.com/Kunstmaan/kStrano/master/config/staging.rb"
|
@@ -59,8 +61,7 @@ def update_deploy_config(ui, base, context, force)
|
|
59
61
|
if write_deploy
|
60
62
|
dirname = File.basename(Dir.getwd)
|
61
63
|
deploy_gist = get_plain_secure(DEPLOY_GIST).body
|
62
|
-
|
63
|
-
app_name = context["app_name"]
|
64
|
+
app_name = ui.ask("What's the name of the application?") { |q| q.default = dirname }
|
64
65
|
deploy_gist.gsub!(/(:application,\s)(\"\")/, '\1' + "\"#{app_name}\"")
|
65
66
|
deploy_gist.gsub!(/(:admin_runner,\s)(\"\")/, '\1' + "\"#{app_name}\"")
|
66
67
|
|