scalarium 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -81,8 +81,10 @@ class Scalarium
81
81
  while(instance = instances.shift) do
82
82
  system(%{tmux split-window -h -p #{100/total_instances*(instances.size+1)} -t #{session_name} "ssh -t #{instance.nickname} \\"#{command}\\""})
83
83
  end
84
- system("tmux select-window -t #{session_name}")
85
- exec("tmux -2 attach-session -t #{session_name}")
84
+ system("tmux select-window -t #{session_name} ")
85
+ system("tmux select-layout -t #{session_name} tiled")
86
+ exec("tmux -2 attach-session -t #{session_name} ")
87
+
86
88
  end
87
89
  end
88
90
 
@@ -98,12 +100,12 @@ class Scalarium
98
100
 
99
101
  puts "Waiting the deploy finish"
100
102
  puts "Check https://manage.scalarium.com/clouds/#{cloud.id}/deployments/#{deploy_info["id"]} if you want"
101
- while deploy_info["successful"] == nil
103
+ while deploy_info["status"] == 'running'
102
104
  sleep 1
103
105
  deploy_info = cloud.check_deploy(deploy_info["id"])
104
106
  end
105
- puts "Deploy was #{deploy_info["successful"]}"
106
- exit (deploy_info["successful"] ? 0 : -1)
107
+ puts "Deploy was #{deploy_info["status"]}"
108
+ exit (deploy_info["status"] == 'successful' ? 0 : -1)
107
109
  end
108
110
  end
109
111
  end
@@ -127,12 +129,12 @@ class Scalarium
127
129
 
128
130
  puts "Waiting the recipe to finish"
129
131
  puts "Check https://manage.scalarium.com/clouds/#{cloud.id}/deployments/#{deploy_info["id"]} if you want"
130
- while deploy_info["successful"] == nil
132
+ while deploy_info["status"] == 'running'
131
133
  sleep 1
132
134
  deploy_info = cloud.check_deploy(deploy_info["id"])
133
135
  end
134
- puts "Deploy was #{deploy_info["successful"]}"
135
- exit (deploy_info["successful"] ? 0 : -1)
136
+ puts "Deploy was #{deploy_info["status"]}"
137
+ exit (deploy_info["status"] == 'successful' ? 0 : -1)
136
138
  end
137
139
  end
138
140
  end
@@ -146,12 +148,12 @@ class Scalarium
146
148
 
147
149
  puts "Waiting the deploy finish"
148
150
  puts "Check https://manage.scalarium.com/applications/#{app.id}/deployments/#{deploy_info["id"]} if you want"
149
- while deploy_info["successful"] == nil
151
+ while deploy_info["status"] == 'running'
150
152
  sleep 1
151
153
  deploy_info = app.deploy_info(deploy_info["id"])
152
154
  end
153
- puts "Deploy was #{deploy_info["successful"]}"
154
- exit (deploy_info["successful"] ? 0 : -1)
155
+ puts "Deploy was #{deploy_info["status"]}"
156
+ exit (deploy_info["status"] == 'successful' ? 0 : -1)
155
157
  end
156
158
  end
157
159
 
@@ -176,7 +178,9 @@ class Scalarium
176
178
  clouds.threaded_each{ |c|
177
179
  if cloud_name != 'all'
178
180
  DQ[ lambda{ c.instances }, lambda{c.roles} ]
179
- print_cloud(c, options[:verbose])
181
+ Thread.exclusive do
182
+ print_cloud(c, options[:verbose])
183
+ end
180
184
  else
181
185
  puts c.name
182
186
  end
@@ -1,3 +1,3 @@
1
1
  class Scalarium
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
@@ -21,6 +21,7 @@ Gem::Specification.new do |s|
21
21
  s.add_runtime_dependency 'rest-client'
22
22
  s.add_runtime_dependency 'dispatch_queue', ">=1.1.0"
23
23
  s.add_runtime_dependency 'thor'
24
+ s.add_runtime_dependency 'net-ssh'
24
25
  s.add_development_dependency 'ruby-debug19'
25
26
  s.add_development_dependency 'rake'
26
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scalarium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-29 00:00:00.000000000Z
12
+ date: 2012-07-02 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client
16
- requirement: &2164424560 !ruby/object:Gem::Requirement
16
+ requirement: &70196225605140 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2164424560
24
+ version_requirements: *70196225605140
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: dispatch_queue
27
- requirement: &2164423860 !ruby/object:Gem::Requirement
27
+ requirement: &70196225604640 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.1.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2164423860
35
+ version_requirements: *70196225604640
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: thor
38
- requirement: &2164423280 !ruby/object:Gem::Requirement
38
+ requirement: &70196225604220 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,21 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2164423280
46
+ version_requirements: *70196225604220
47
+ - !ruby/object:Gem::Dependency
48
+ name: net-ssh
49
+ requirement: &70196225603760 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: *70196225603760
47
58
  - !ruby/object:Gem::Dependency
48
59
  name: ruby-debug19
49
- requirement: &2164422660 !ruby/object:Gem::Requirement
60
+ requirement: &70196225603340 !ruby/object:Gem::Requirement
50
61
  none: false
51
62
  requirements:
52
63
  - - ! '>='
@@ -54,10 +65,10 @@ dependencies:
54
65
  version: '0'
55
66
  type: :development
56
67
  prerelease: false
57
- version_requirements: *2164422660
68
+ version_requirements: *70196225603340
58
69
  - !ruby/object:Gem::Dependency
59
70
  name: rake
60
- requirement: &2164422160 !ruby/object:Gem::Requirement
71
+ requirement: &70196225602920 !ruby/object:Gem::Requirement
61
72
  none: false
62
73
  requirements:
63
74
  - - ! '>='
@@ -65,7 +76,7 @@ dependencies:
65
76
  version: '0'
66
77
  type: :development
67
78
  prerelease: false
68
- version_requirements: *2164422160
79
+ version_requirements: *70196225602920
69
80
  description: Access your scalarium clouds from console
70
81
  email:
71
82
  - guillermo@cientifico.net
@@ -110,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
121
  version: '0'
111
122
  requirements: []
112
123
  rubyforge_project: scalarium
113
- rubygems_version: 1.8.6
124
+ rubygems_version: 1.8.16
114
125
  signing_key:
115
126
  specification_version: 3
116
127
  summary: Scalarium console access