app42 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -43,9 +43,10 @@ module App42
43
43
  'bindinfo',
44
44
  'setupbpaas',
45
45
  'startbpaas',
46
+ 'stopbpaas',
47
+ 'restartbpaas',
46
48
  'upgradebpaas',
47
49
  'downgradebpaas',
48
- 'stopbpaas',
49
50
  'deletebpaas',
50
51
  'bpaasinfo',
51
52
  'bpaassetups',
@@ -55,6 +56,7 @@ module App42
55
56
  'downgradewordpress',
56
57
  'startwordpress',
57
58
  'stopwordpress',
59
+ 'restartwordpress',
58
60
  'wordpresssetups',
59
61
  'wordpressinfo',
60
62
  'addcustomurl',
@@ -62,9 +64,10 @@ module App42
62
64
  'customurlinfo',
63
65
  'setupgpaas',
64
66
  'startgpaas',
67
+ 'stopgpaas',
68
+ 'restartgpaas',
65
69
  'upgradegpaas',
66
70
  'downgradegpaas',
67
- 'stopgpaas',
68
71
  'deletegpaas',
69
72
  'gpaasinfo',
70
73
  'gpaassetups'
@@ -971,7 +971,7 @@ module App42
971
971
  # ERROR message in case failed
972
972
  def delete_cloudapi setup_name
973
973
  begin
974
- response = with_progress(Paint["Deleting Setup", :yellow]) do |s|
974
+ response = with_progress(Paint["Deleting BPaaS Setup", :yellow]) do |s|
975
975
  query_params = params
976
976
  query_params.store('setupName', setup_name)
977
977
  build_delete_request query_params, "setup", "#{setup_name}"
@@ -1030,7 +1030,7 @@ module App42
1030
1030
  response = with_progress(Paint["Deleting WordPress Setup", :yellow]) do |s|
1031
1031
  query_params = params
1032
1032
  query_params.store('setupName', wordpress_name)
1033
- build_delete_request query_params, "setup", "#{wordpress_name}"
1033
+ build_delete_request query_params, "wordpress", "#{wordpress_name}"
1034
1034
  end
1035
1035
 
1036
1036
  transaction_success = check_transaction_status response["transactionId"], previous_completed = 0, 'deleted' if response["success"] == true && response["transactionId"]
@@ -1138,7 +1138,7 @@ module App42
1138
1138
 
1139
1139
  query_params = params
1140
1140
  query_params.store('body', body)
1141
- build_put_request body, query_params, "setup", "#{what}" if what.to_s == 'stop'
1141
+ build_put_request body, query_params, "wordpress", "#{what}" if what.to_s == 'stop'
1142
1142
  end
1143
1143
  else
1144
1144
  response = with_progress(Paint["#{what.capitalize}ing Wordpress Setup #{setup_name}", :yellow]) do |s|
@@ -1148,7 +1148,7 @@ module App42
1148
1148
 
1149
1149
  query_params = params
1150
1150
  query_params.store('body', body)
1151
- build_put_request body, query_params, "setup", "#{what}" if what.to_s == 'restart' || what.to_s == 'start'
1151
+ build_put_request body, query_params, "wordpress", "#{what}" if what.to_s == 'restart' || what.to_s == 'start'
1152
1152
  end
1153
1153
  end
1154
1154
 
@@ -249,6 +249,9 @@ module App42
249
249
  when 'stopbpaas'
250
250
  set_cmd(:setup, :stop)
251
251
 
252
+ when 'restartbpaas'
253
+ set_cmd(:setup, :restart)
254
+
252
255
  when 'upgradebpaas'
253
256
  set_cmd(:setup, :upgrade)
254
257
 
@@ -282,6 +285,9 @@ module App42
282
285
  when 'stopwordpress'
283
286
  set_cmd(:wordpress, :stop)
284
287
 
288
+ when 'restartwordpress'
289
+ set_cmd(:wordpress, :restart)
290
+
285
291
  when 'wordpresssetups'
286
292
  set_cmd(:wordpress, :wordpresssetups)
287
293
 
@@ -306,6 +312,9 @@ module App42
306
312
  when 'stopgpaas'
307
313
  set_cmd(:gpaas, :stop)
308
314
 
315
+ when 'restartgpaas'
316
+ set_cmd(:gpaas, :restart)
317
+
309
318
  when 'upgradegpaas'
310
319
  set_cmd(:gpaas, :upgrade)
311
320
 
@@ -340,4 +349,4 @@ module App42
340
349
 
341
350
  end
342
351
  end
343
- end
352
+ end
@@ -39,6 +39,15 @@ module App42
39
39
  exit! if response
40
40
  end
41
41
 
42
+ # collect GPaaS setup name from user and proceed GPaaS restart request
43
+ def restart
44
+ # ans = ask Paint["#{Message::URL_WILL_CHANGE}", :red], :default => true ; print_new_line
45
+ # ans == true ? (@options[:setup] = get_setup_name if @options[:setup].nil?) : (exit!)
46
+ @options[:setup] = get_setup_name if @options[:setup].nil?
47
+ response = gpaas_operation __method__, @options[:setup] if is_setup_name_exist? @options[:setup]
48
+ exit! if response
49
+ end
50
+
42
51
  # collect GPaaS setup name from user and proceed GPaaS upgrade request
43
52
  def upgrade
44
53
  @options[:setup] = get_setup_name if @options[:setup].nil?
@@ -38,6 +38,13 @@ module App42
38
38
  exit! if response
39
39
  end
40
40
 
41
+ # collect BPaaS setup name from user and proceed BPaaS restart request
42
+ def restart
43
+ @options[:setup] = get_setup_name if @options[:setup].nil?
44
+ response = cloudapi_operation __method__, @options[:setup] if is_setup_name_exist? @options[:setup]
45
+ exit! if response
46
+ end
47
+
41
48
  # collect BPaaS setup name from user and proceed BPaaS upgrade request
42
49
  def upgrade
43
50
  @options[:setup] = get_setup_name if @options[:setup].nil?
@@ -37,6 +37,13 @@ module App42
37
37
  exit! if response
38
38
  end
39
39
 
40
+ # collect wordpress setup name from user and proceed wordpress restart request
41
+ def restart
42
+ @options[:wordpress] = get_wordpress_name if @options[:wordpress].nil?
43
+ response = wordpress_operation __method__, @options[:wordpress] if is_setup_name_exist? @options[:wordpress]
44
+ exit! if response
45
+ end
46
+
40
47
  # collect Wordpress setup name from user and proceed Wordpress upgrade request
41
48
  def upgrade
42
49
  @options[:wordpress] = get_wordpress_name if @options[:wordpress].nil?
@@ -3,7 +3,7 @@ module App42
3
3
  module VERSION
4
4
  MAJOR = 0
5
5
  MINOR = 6
6
- TINY = 2
6
+ TINY = 3
7
7
  PRE = "alpha"
8
8
 
9
9
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
metadata CHANGED
@@ -1,32 +1,36 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app42
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - ShepHertz
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-02-25 00:00:00.000000000 Z
12
+ date: 2014-04-09 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - '>='
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: '0'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - '>='
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: '0'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: bundler
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - ~>
32
36
  - !ruby/object:Gem::Version
@@ -34,6 +38,7 @@ dependencies:
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - ~>
39
44
  - !ruby/object:Gem::Version
@@ -41,20 +46,23 @@ dependencies:
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: rake
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - '>='
51
+ - - ! '>='
46
52
  - !ruby/object:Gem::Version
47
53
  version: '0'
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - '>='
59
+ - - ! '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: highline
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
67
  - - ~>
60
68
  - !ruby/object:Gem::Version
@@ -62,6 +70,7 @@ dependencies:
62
70
  type: :runtime
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
75
  - - ~>
67
76
  - !ruby/object:Gem::Version
@@ -69,6 +78,7 @@ dependencies:
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: paint
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
83
  - - ~>
74
84
  - !ruby/object:Gem::Version
@@ -76,6 +86,7 @@ dependencies:
76
86
  type: :runtime
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
91
  - - ~>
81
92
  - !ruby/object:Gem::Version
@@ -83,6 +94,7 @@ dependencies:
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: rest-client
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
99
  - - ~>
88
100
  - !ruby/object:Gem::Version
@@ -90,6 +102,7 @@ dependencies:
90
102
  type: :runtime
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
107
  - - ~>
95
108
  - !ruby/object:Gem::Version
@@ -97,6 +110,7 @@ dependencies:
97
110
  - !ruby/object:Gem::Dependency
98
111
  name: json_pure
99
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
100
114
  requirements:
101
115
  - - '='
102
116
  - !ruby/object:Gem::Version
@@ -104,6 +118,7 @@ dependencies:
104
118
  type: :runtime
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
107
122
  requirements:
108
123
  - - '='
109
124
  - !ruby/object:Gem::Version
@@ -111,6 +126,7 @@ dependencies:
111
126
  - !ruby/object:Gem::Dependency
112
127
  name: ruby-hmac
113
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
114
130
  requirements:
115
131
  - - '='
116
132
  - !ruby/object:Gem::Version
@@ -118,6 +134,7 @@ dependencies:
118
134
  type: :runtime
119
135
  prerelease: false
120
136
  version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
121
138
  requirements:
122
139
  - - '='
123
140
  - !ruby/object:Gem::Version
@@ -125,6 +142,7 @@ dependencies:
125
142
  - !ruby/object:Gem::Dependency
126
143
  name: interact
127
144
  requirement: !ruby/object:Gem::Requirement
145
+ none: false
128
146
  requirements:
129
147
  - - ~>
130
148
  - !ruby/object:Gem::Version
@@ -132,6 +150,7 @@ dependencies:
132
150
  type: :runtime
133
151
  prerelease: false
134
152
  version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
135
154
  requirements:
136
155
  - - ~>
137
156
  - !ruby/object:Gem::Version
@@ -139,6 +158,7 @@ dependencies:
139
158
  - !ruby/object:Gem::Dependency
140
159
  name: terminal-table
141
160
  requirement: !ruby/object:Gem::Requirement
161
+ none: false
142
162
  requirements:
143
163
  - - ~>
144
164
  - !ruby/object:Gem::Version
@@ -146,6 +166,7 @@ dependencies:
146
166
  type: :runtime
147
167
  prerelease: false
148
168
  version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
149
170
  requirements:
150
171
  - - ~>
151
172
  - !ruby/object:Gem::Version
@@ -153,20 +174,23 @@ dependencies:
153
174
  - !ruby/object:Gem::Dependency
154
175
  name: ipaddress
155
176
  requirement: !ruby/object:Gem::Requirement
177
+ none: false
156
178
  requirements:
157
- - - '>='
179
+ - - ! '>='
158
180
  - !ruby/object:Gem::Version
159
181
  version: '0'
160
182
  type: :runtime
161
183
  prerelease: false
162
184
  version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
163
186
  requirements:
164
- - - '>='
187
+ - - ! '>='
165
188
  - !ruby/object:Gem::Version
166
189
  version: '0'
167
190
  - !ruby/object:Gem::Dependency
168
191
  name: rspec
169
192
  requirement: !ruby/object:Gem::Requirement
193
+ none: false
170
194
  requirements:
171
195
  - - ~>
172
196
  - !ruby/object:Gem::Version
@@ -174,6 +198,7 @@ dependencies:
174
198
  type: :development
175
199
  prerelease: false
176
200
  version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
177
202
  requirements:
178
203
  - - ~>
179
204
  - !ruby/object:Gem::Version
@@ -234,26 +259,27 @@ files:
234
259
  homepage: http://shephertz.com
235
260
  licenses:
236
261
  - MIT
237
- metadata: {}
238
262
  post_install_message: Thanks for installing!
239
263
  rdoc_options: []
240
264
  require_paths:
241
265
  - lib
242
266
  required_ruby_version: !ruby/object:Gem::Requirement
267
+ none: false
243
268
  requirements:
244
- - - '>='
269
+ - - ! '>='
245
270
  - !ruby/object:Gem::Version
246
271
  version: 1.9.2
247
272
  required_rubygems_version: !ruby/object:Gem::Requirement
273
+ none: false
248
274
  requirements:
249
- - - '>='
275
+ - - ! '>='
250
276
  - !ruby/object:Gem::Version
251
277
  version: '0'
252
278
  requirements: []
253
279
  rubyforge_project:
254
- rubygems_version: 2.0.3
280
+ rubygems_version: 1.8.24
255
281
  signing_key:
256
- specification_version: 4
282
+ specification_version: 3
257
283
  summary: Client library and command-line tool to deploy and manage apps on App42PaaS
258
284
  Server.
259
285
  test_files:
@@ -272,3 +298,4 @@ test_files:
272
298
  - spec/data/state.yml
273
299
  - spec/data/user_services.yml
274
300
  - spec/spec_helper.rb
301
+ has_rdoc:
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: a42af4dc576b6652113d47ccbca40c15f5272ae2
4
- data.tar.gz: 58c60fa6325505cb88ee8af901202cdde6a71609
5
- SHA512:
6
- metadata.gz: cd2cb6f61994df6407f716bc27c90307b6dbbeb777736c1b426dc1326b5634b5f5841b6e10d4585d3a9e092ebea9373f28b19360f8c707879fcbbf206291c8ae
7
- data.tar.gz: f809ee2c8e48e3e94d7bd7ffd8c66607f9695f727f9d8afa151ba0bfe822e6faaf935c4c3989f14e4d5819c2d39e349765f60226923cd8b1da994d13ee6a232a