vmc_knife 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -210,21 +210,21 @@ class VMC::Cli::KnifeRunner < VMC::Cli::Runner
210
210
  else
211
211
  set_cmd(:knifeapps, :logs_vcap, @args.size) # too many
212
212
  end
213
- when 'logs-less','logs-shell'
214
- usage('vmc_knife logs-less <application name>')
213
+ when 'less','logs-less','logs-shell'
214
+ usage('vmc_knife less <application name>')
215
215
  @args.shift # consumes the argument.
216
- if @args.size <= 3
217
- set_cmd(:knifeapps, :logs_less, @args.size)
218
- else
219
- set_cmd(:knifeapps, :logs_less, @args.size) # too many
220
- end
216
+ set_cmd(:knifeapps, :logs_less, @args.size)
217
+ when 'tail','logs-tail'
218
+ usage('vmc_knife tail <application name>')
219
+ @args.shift # consumes the argument.
220
+ set_cmd(:knifeapps, :logs_tail, @args.size)
221
221
  when 'update-self'
222
222
  usage('vmc_knife update-self')
223
223
  puts "Updating vmc-knife"
224
224
  `cd /tmp; [ -d "vmc-knife" ] && rm -rf vmc-knife; git clone https://github.com/hmalphettes/vmc-knife.git; cd vmc-knife; gem build vmc_knife.gemspec; gem install vmc_knife`
225
225
  exit 0
226
226
  when 'help'
227
- display "vmc_knife expand-manifest|login|start/stop/restart-apps|upload-apps|configure-all|configure-recipes|configure-apps|configure-services|delete-all|configure-vcap|configure-vcap-mdns|configure-vcap-etc-hosts|data-shell|data-export/import/shrink/drop|logs-less|logs-all/apps/vcap|update-self [<manifest_path>]"
227
+ display "vmc_knife expand-manifest|login|start/stop/restart-apps|upload-apps|configure-all|configure-recipes|configure-apps|configure-services|delete-all|configure-vcap|configure-vcap-mdns|configure-vcap-etc-hosts|data-shell|data-export/import/shrink/drop|logs-less|less|tail|logs-all/apps/vcap|update-self [<manifest_path>]"
228
228
  else
229
229
  super
230
230
  end
@@ -309,7 +309,7 @@ module VMC
309
309
  else
310
310
  file = basename
311
311
  end
312
-
312
+
313
313
  if is_postgresql
314
314
  p "chmod o+w #{file}"
315
315
  `chmod o+w #{file}`
@@ -380,10 +380,10 @@ module VMC
380
380
  puts cmd
381
381
  puts `#{cmd}`
382
382
 
383
- unless File.exists? file
384
- raise "Unable to read the file #{file}"
383
+ unless File.exists? archive_unzipped
384
+ raise "Unable to read the file #{archive_unzipped}"
385
385
  end
386
- `chmod o-w #{file}`
386
+ `chmod o-w #{archive_unzipped}`
387
387
  elsif is_mongodb
388
388
  if file.nil?
389
389
  extension = @wrapped['director']['file_extension'] if @wrapped['director']
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vmc_knife
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 12
10
- version: 0.0.12
9
+ - 13
10
+ version: 0.0.13
11
11
  platform: ruby
12
12
  authors:
13
13
  - Intalio Pte
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-02-03 00:00:00 Z
18
+ date: 2012-02-08 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: vmc