vmc_knife 0.0.66 → 0.0.67
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/vmc_knife/commands/knife_cmds.rb +18 -16
- data/lib/vmc_knife/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZDM2YzI4OGMwOWM1M2U3YmNlMDU3MzgxNDdlZjVhZDhlODIzNjFjMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OWZiMDM0NjE2NWU3OGU3MmFlNTdmNzliNTI0Y2VkMGNmNzBlMmZmYQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDE1ZGQyZDIyZjJlZjM5Y2NhNTBhNmVjNmNjODJjZjZhNWIwMDk0NGVmNWRl
|
10
|
+
NTdhZTBjNDk0Y2VkMzdjYjIxZTQxNDlhY2Y3ZmM0ZDAzMzRmZTc1Mjk0Zjk2
|
11
|
+
NWZlYzFkYWZlOTI0Njk4ZWEzNGRlZTljYmQwYzFkMGVkYzg0OTA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NWE2Zjg2ZWQ1ZWVkMzRjYTg3MjA4OTk2MWY3MzhhZWJjZmRhM2ViNmM5M2M5
|
14
|
+
YzRlY2UwNmJiN2JmODhmNmRiMThiYTZlM2JkMzdjNzFkODkxOTcwNTA1Yjdh
|
15
|
+
Y2RiZmJiOWIzMmI0MmJiY2I1M2YwMTRiOWI1NjhlNjA0NmE3YWM=
|
@@ -215,11 +215,11 @@ module VMC::Cli::Command
|
|
215
215
|
end
|
216
216
|
def upload_applications(app_names_regexp=nil,manifest_file_path=nil)
|
217
217
|
recipe_configuror(:upload,nil,app_names_regexp,nil,manifest_file_path,
|
218
|
-
{:apps_only=>true, :force=>@options[:force]})
|
218
|
+
{:apps_only=>true, :force=>@options[:force], :vmc_login => true})
|
219
219
|
end
|
220
220
|
def update_applications(app_names_regexp=nil,manifest_file_path=nil)
|
221
221
|
recipe_configuror(:update,nil,app_names_regexp,nil,manifest_file_path,
|
222
|
-
{:apps_only=>true, :force=>@options[:force]})
|
222
|
+
{:apps_only=>true, :force=>@options[:force], :vmc_login => true})
|
223
223
|
end
|
224
224
|
def patch_applications(app_names_regexp=nil,manifest_file_path=nil)
|
225
225
|
recipe_configuror(:patch,nil,app_names_regexp,nil,manifest_file_path,
|
@@ -231,15 +231,15 @@ module VMC::Cli::Command
|
|
231
231
|
end
|
232
232
|
def start_applications(app_names_regexp=nil,manifest_file_path=nil)
|
233
233
|
recipe_configuror(:start,nil,app_names_regexp,nil,manifest_file_path,
|
234
|
-
{:apps_only=>true})
|
234
|
+
{:apps_only=>true, :vmc_login => true})
|
235
235
|
end
|
236
236
|
def stop_applications(app_names_regexp=nil,manifest_file_path=nil)
|
237
237
|
recipe_configuror(:stop,nil,app_names_regexp,nil,manifest_file_path,
|
238
|
-
{:apps_only=>true})
|
238
|
+
{:apps_only=>true, :vmc_login => true})
|
239
239
|
end
|
240
240
|
def restart_applications(app_names_regexp=nil,manifest_file_path=nil)
|
241
241
|
recipe_configuror(:restart,nil,app_names_regexp,nil,manifest_file_path,
|
242
|
-
{:apps_only=>true})
|
242
|
+
{:apps_only=>true, :vmc_login => true})
|
243
243
|
end
|
244
244
|
def info_applications(app_names_regexp=nil,manifest_file_path=nil)
|
245
245
|
res=recipe_configuror(:info,nil,app_names_regexp,nil,manifest_file_path,
|
@@ -248,12 +248,12 @@ module VMC::Cli::Command
|
|
248
248
|
end
|
249
249
|
def wait_till_running_applications(app_names_regexp=nil,manifest_file_path=nil)
|
250
250
|
res=recipe_configuror(:running_applications?,nil,app_names_regexp,nil,manifest_file_path,
|
251
|
-
{:apps_only=>true, :wait=>{:interval=>30,:retries=>6}})
|
251
|
+
{:apps_only=>true, :wait=>{:interval=>30,:retries=>6}, :vmc_login => true})
|
252
252
|
exit 1 unless res
|
253
253
|
end
|
254
254
|
def running_applications?(app_names_regexp=nil,manifest_file_path=nil)
|
255
255
|
res=recipe_configuror(:running_applications?,nil,app_names_regexp,nil,manifest_file_path,
|
256
|
-
{:apps_only=>true})
|
256
|
+
{:apps_only=>true, :vmc_login => true})
|
257
257
|
exit 1 unless res
|
258
258
|
end
|
259
259
|
def info_configure(app_names_regexp=nil,manifest_file_path=nil)
|
@@ -262,15 +262,15 @@ module VMC::Cli::Command
|
|
262
262
|
exit 1 unless res
|
263
263
|
end
|
264
264
|
def delete_all(app_names_regexp=nil,manifest_file_path=nil)
|
265
|
-
recipe_configuror(:delete,nil,app_names_regexp,nil,manifest_file_path)
|
265
|
+
recipe_configuror(:delete,nil,app_names_regexp,nil,manifest_file_path, {:vmc_login => true})
|
266
266
|
end
|
267
267
|
def delete_apps(app_names_regexp=nil,manifest_file_path=nil)
|
268
268
|
recipe_configuror(:delete,nil,app_names_regexp,nil,manifest_file_path,
|
269
|
-
{:apps_only=>true})
|
269
|
+
{:apps_only=>true, :vmc_login => true})
|
270
270
|
end
|
271
271
|
def delete_data(services_names_regexp=nil,manifest_file_path=nil)
|
272
272
|
recipe_configuror(:delete,nil,nil,services_names_regexp,manifest_file_path,
|
273
|
-
{:data_only=>true})
|
273
|
+
{:data_only=>true, :vmc_login => true})
|
274
274
|
end
|
275
275
|
def data_shell(data_names_regexp=nil,file_or_cmd=nil,app_name=nil,manifest_file_path=nil)
|
276
276
|
file_name = nil
|
@@ -342,12 +342,14 @@ module VMC::Cli::Command
|
|
342
342
|
def recipe_configuror(method_sym_name,recipes_regexp=nil,app_names_regexp=nil,service_names_regexp=nil,manifest_file_path=nil,opts=nil)
|
343
343
|
man = load_manifest(manifest_file_path)
|
344
344
|
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
345
|
+
if (opts && opts[:vmc_login])
|
346
|
+
# login first
|
347
|
+
new_knife = VMC::Cli::Command::Knifemisc.new(@options)
|
348
|
+
new_knife.login(manifest_file_path)
|
349
|
+
client(new_knife.client)
|
350
|
+
|
351
|
+
raise VMC::Client::AuthError unless client.user || client.logged_in?
|
352
|
+
end
|
351
353
|
|
352
354
|
recipes_regexp = as_regexp(recipes_regexp)
|
353
355
|
app_names_regexp = as_regexp(app_names_regexp)
|
data/lib/vmc_knife/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vmc_knife
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.67
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Intalio, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: vmc
|