bosh_cli 1.2852.0 → 1.2855.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d3bc9276495a34791966b348d12b1b07e7d68ba7
4
- data.tar.gz: 165fc4873f3c76e1059b14932f09bd5228fd07bb
3
+ metadata.gz: c49d9be0f9b34b33ae95e758fcd976016cd23524
4
+ data.tar.gz: 3e3f278f81d52db86eb3e988dc9cf9f454d50a69
5
5
  SHA512:
6
- metadata.gz: b77c2a3862f5daf04bcceb3e7c14fb24f199433ec317a1fb6a4db29fac13f653eed609dc90b28e336a1d509dea359ca9d4d5784e36855dd6cfd5f319ae11b181
7
- data.tar.gz: 9cb200e8585dd16ce50b323c16da89df9bb50014b10fb571cc4ced14828884b247be99afcc3df888769f3fc7ad57c657c0f78abcfb84a30687fd0cc4359b6008
6
+ metadata.gz: 2bcc2c04101a5a44b66cded477588d8154136c9a42de0378d2ceec2b4c24e5e3e4b5d8d8ac8ca00554592c82cc27184a4115cc7f133dcbee26f558ce1385f7f1
7
+ data.tar.gz: 83fcc0ea7550a36cd2e721ea19af5ad40e7095b652853261da5f8da799f42128bf3447199642c1305955f38a2bc418d7cb13e0a48acdc152b7c504a017b7d776
data/bin/bosh CHANGED
@@ -1,10 +1,17 @@
1
1
  #!/usr/bin/env ruby
2
-
3
- require "cli"
2
+ require 'benchmark'
3
+ require_cli_time = Benchmark.realtime { require "cli" }
4
4
 
5
5
  begin
6
+ runner = Bosh::Cli::Runner.new(ARGV.dup)
7
+
8
+ load_threshold = 5
9
+ if require_cli_time > load_threshold
10
+ warning sprintf("Loading the cli took %.1f seconds, consider cleaning your gem environment", require_cli_time)
11
+ end
12
+
6
13
  Thread.abort_on_exception = true
7
- Bosh::Cli::Runner.run(ARGV.dup)
14
+ runner.run
8
15
  rescue Errno::EPIPE
9
16
  puts("pipe closed, exiting...")
10
17
  exit(0)
data/lib/cli.rb CHANGED
@@ -25,7 +25,8 @@ require 'time'
25
25
  require 'timeout'
26
26
  require 'tmpdir'
27
27
  require 'uri'
28
- require 'yaml'
28
+ autoload :Psych, 'psych'
29
+ autoload :YAML, 'yaml'
29
30
  require 'netaddr'
30
31
  require 'zlib'
31
32
  require 'archive/tar/minitar'
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2009-2012 VMware, Inc.
2
- require 'logging'
2
+ autoload :Logging, 'logging'
3
3
 
4
4
  module Bosh::Cli
5
5
  # In order to avoid storing large objects in git repo,
@@ -1,5 +1,6 @@
1
1
  require 'httpclient'
2
- require 'rexml/document'
2
+ require 'rexml/rexml'
3
+ REXML.autoload :Document, 'rexml/document'
3
4
 
4
5
  require 'cli/public_stemcell'
5
6
 
@@ -26,13 +26,13 @@ module Bosh::Cli
26
26
 
27
27
  Config.colorize = true
28
28
  Config.output ||= STDOUT
29
+
30
+ parse_global_options
29
31
  end
30
32
 
31
33
  # Find and run CLI command
32
34
  # @return [void]
33
35
  def run
34
- parse_global_options
35
-
36
36
  Config.interactive = !@options[:non_interactive]
37
37
  Config.poll_interval = @options[:poll_interval]
38
38
 
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
2
  module Cli
3
- VERSION = '1.2852.0'
3
+ VERSION = '1.2855.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bosh_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2852.0
4
+ version: 1.2855.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - VMware
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-19 00:00:00.000000000 Z
11
+ date: 2015-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bosh_common
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.2852.0
19
+ version: 1.2855.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.2852.0
26
+ version: 1.2855.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bosh-template
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.2852.0
33
+ version: 1.2855.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.2852.0
40
+ version: 1.2855.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: json_pure
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 1.2852.0
117
+ version: 1.2855.0
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 1.2852.0
124
+ version: 1.2855.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: net-ssh
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -194,7 +194,7 @@ dependencies:
194
194
  version: 0.5.4
195
195
  description: |-
196
196
  BOSH CLI
197
- d8b022
197
+ 697a97
198
198
  email: support@cloudfoundry.com
199
199
  executables:
200
200
  - bosh