intercity 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/intercity.gemspec +1 -1
- data/lib/intercity/cli/application.rb +8 -4
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9e4cb14857b488f4fa9b273892debcc5fd189c7
|
4
|
+
data.tar.gz: 732ddd745efc949198da1663c003e6ae081950ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8883ba153a41414ff4617a16184f23a0c80fceafbd35889c828ebb3a3ef0107f6438979e85e3b67521ec5ece5542f8752e48c39c4eff85f9401664341d5428bf
|
7
|
+
data.tar.gz: 48610b447767312fade43c6e5723e0f7f17507af06f3716561e23c8edf0dd1ffd6b300b873d75e5a21a1dc42aab91c48ea4fa7c0e49c1cec7f62dabf20660653
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/intercity.gemspec
CHANGED
@@ -103,8 +103,12 @@ module IntercityCLI
|
|
103
103
|
option :ruby_version, type: :string, default: "2.1.3"
|
104
104
|
def add(application)
|
105
105
|
address = options[:server]
|
106
|
-
|
107
|
-
|
106
|
+
|
107
|
+
configuration = IntercityCLI::Configuration.new()
|
108
|
+
node_file = File.join(configuration.config_directory, "#{address}.json")
|
109
|
+
|
110
|
+
if File.exists?(node_file)
|
111
|
+
raw_json = File.read(node_file)
|
108
112
|
json = JSON.parse(raw_json)
|
109
113
|
else
|
110
114
|
raise "No configuration file for this server yet! Please create one by running:\n\n$ intercity server install <ip address>\n\n"
|
@@ -129,7 +133,7 @@ module IntercityCLI
|
|
129
133
|
}
|
130
134
|
)
|
131
135
|
|
132
|
-
File.open(
|
136
|
+
File.open(node_file, "w+") do |f|
|
133
137
|
f.write(JSON.pretty_generate(json))
|
134
138
|
end
|
135
139
|
|
@@ -139,7 +143,7 @@ module IntercityCLI
|
|
139
143
|
with debian_frontend: :noninteractive do
|
140
144
|
host.user = user
|
141
145
|
|
142
|
-
upload!
|
146
|
+
upload! node_file, "/root/server_config.json"
|
143
147
|
|
144
148
|
execute 'chef-client -z -j ~/server_config.json -o "recipe[rails::passenger],recipe[rails::databases]"'
|
145
149
|
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|