small_wonder 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/small_wonder/deploy.rb +8 -2
- metadata +18 -4
data/lib/small_wonder/deploy.rb
CHANGED
|
@@ -42,12 +42,16 @@ module SmallWonder
|
|
|
42
42
|
|
|
43
43
|
sudo_password = ::HighLine.ask("Your sudo password please: ") { |q| q.echo = false }
|
|
44
44
|
|
|
45
|
+
if SmallWonder::Config.version
|
|
46
|
+
SmallWonder::Log.info("Got version #{SmallWonder::Config.version} from a command line option, using it as the current version for #{SmallWonder::Config.app}.")
|
|
47
|
+
else
|
|
48
|
+
SmallWonder::Log.info("Did not get a app version to deploy on the command line, assuming you will set it during the deploy.")
|
|
49
|
+
end
|
|
50
|
+
|
|
45
51
|
nodes.each do |node|
|
|
46
52
|
if SmallWonder::Config.version
|
|
47
|
-
SmallWonder::Log.info("Got version #{SmallWonder::Config.version} from a command line option, using it as the current version for #{SmallWonder::Config.app}.")
|
|
48
53
|
application = SmallWonder::Application.new(node, application_name, {:version => SmallWonder::Config.version})
|
|
49
54
|
else
|
|
50
|
-
SmallWonder::Log.info("Did not get a app version to deploy on the command line, assuming you will set it during the deploy.")
|
|
51
55
|
application = SmallWonder::Application.new(node, application_name)
|
|
52
56
|
end
|
|
53
57
|
|
|
@@ -70,6 +74,8 @@ module SmallWonder
|
|
|
70
74
|
## deploy step
|
|
71
75
|
# Creates a new salticid host for node, and calls <app>.deploy on it.
|
|
72
76
|
def self.run_salticid_task(application, sudo_password)
|
|
77
|
+
SmallWonder::Log.info("Running #{application.application_name} deployment for #{application.node_name} ...")
|
|
78
|
+
|
|
73
79
|
host = SmallWonder.salticid.host application.node_name
|
|
74
80
|
host.on_log do |message|
|
|
75
81
|
begin
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: small_wonder
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 31
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
9
|
+
- 2
|
|
10
|
+
version: 0.1.2
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Joe Williams
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2012-
|
|
18
|
+
date: 2012-08-01 00:00:00 Z
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
21
21
|
name: mixlib-config
|
|
@@ -157,6 +157,20 @@ dependencies:
|
|
|
157
157
|
version: "0"
|
|
158
158
|
type: :runtime
|
|
159
159
|
version_requirements: *id010
|
|
160
|
+
- !ruby/object:Gem::Dependency
|
|
161
|
+
name: colorize
|
|
162
|
+
prerelease: false
|
|
163
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
|
164
|
+
none: false
|
|
165
|
+
requirements:
|
|
166
|
+
- - ">="
|
|
167
|
+
- !ruby/object:Gem::Version
|
|
168
|
+
hash: 3
|
|
169
|
+
segments:
|
|
170
|
+
- 0
|
|
171
|
+
version: "0"
|
|
172
|
+
type: :runtime
|
|
173
|
+
version_requirements: *id011
|
|
160
174
|
description:
|
|
161
175
|
email: j@boundary.com
|
|
162
176
|
executables:
|