hobo-inviqa 0.0.10.pre.rc9 → 0.0.10.pre.rc10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTZmMTNkODk0NmUzMmUxMzc3MWVmMmQ2YTJiZjMzNzZmODIxYmI0OQ==
4
+ ZDY4ZDE1ZjE3NGQ0NGY1M2Q5MDRiZjJmMTIwZjA3YTYwOTlmYjIwMQ==
5
5
  data.tar.gz: !binary |-
6
- YjcxZTYyNDUyY2NkOWZiN2NiNjUwYTYzMTYyN2QxZDc2YjUxNDAzOA==
6
+ YzVlNGM2YTI2OTRlNzNlODYyNjVkZTVjYWI4ZjJjODE4ZGI0MmJjMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODA0YTE0ZDhkNGJjNWE5YzJjZGQ5OGQwNWJmOGY5M2ZhMmIzZmQxY2Q1MWVl
10
- OGMzYWJhOGM1ZDg0OTFiMzVmZDY2ZWIxZWM3MTVjMWUxYWRjNGFjMjBmODYy
11
- YzQxMmViZmIxMjM3YTJkMGQwMWJjY2MxOWVkMjFlYzA4ZGYwNjk=
9
+ MjM3NTUzMmQ3NjBmZThjNWI2MDZkZmIzNTFhMDYwZGRmOWE1ZDAxNjFhMjE5
10
+ ZDA0MjQxNjJiNmNkZmIzYmYyYjE4ZGViNzMyMjMyNTZiYzA1NTc1ODBmMDFj
11
+ YjlmMmRkZWFhNTdjMDMzN2JlZGE0OTEwMjUyY2YyMTAxNjI5OTk=
12
12
  data.tar.gz: !binary |-
13
- OGVmMDZkZDU2MWVhOWI3ZjQwZWQ5MTM1MWM2ZjkyNTcxMDgxYzJjMGIzMzFk
14
- OGQ4OTVjZWMzOTdiMjAzODVmOGEwZDc5Y2MzYTZjYjVlMzhjMDFmYWU5NTg0
15
- N2MwYzM3NTE2OTE0MTE4ODZjMTEyYWYwZDgyNGI5NDBkZWEyM2E=
13
+ MzkzYWM3ODlkYjYzZDVkN2IwN2M3MTk5MGM5YzM1NzI4OTczNDlmMTE5OTlm
14
+ OGYxNDQ2YWVhZTViMjI2NzYxZDVjZjRjY2EyNTcyNTNlY2EwODk3M2M3M2Yx
15
+ NGYwMDA4MDQ5Yjk4ZmIxN2ZkNmZiODIxYjI3MTQ3M2Q4NTRiOTk=
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hobo-inviqa (0.0.10.pre.rc9)
4
+ hobo-inviqa (0.0.10.pre.rc10)
5
5
  aws-sdk (~> 1.34.0)
6
6
  bundler (~> 1.5.2)
7
7
  deepstruct (~> 0.0.5)
data/bin/hobo CHANGED
@@ -3,17 +3,13 @@
3
3
  # Hack to allow testing with Aruba (for now)
4
4
  $:.push File.expand_path(File.join("..", "..", "lib"), __FILE__)
5
5
 
6
- # Hack to override Gemfile to that of hobo (otherwise it'll use project specific one!)
7
- ENV['BUNDLE_GEMFILE'] = File.expand_path('../../Gemfile', __FILE__)
8
- require 'hobo/patches/rubygems'
9
- require 'bundler'
10
- Bundler.setup(:default)
11
-
12
6
  # Suppress Net/SSH/Simple warning on windows
7
+ # Note that $HOBO_ARGV is used as an indicator in the gemspec as to whether it needs to build a filelist
8
+ # Removing it or moving it after the bundler setup will cause "fatal: Not a git repository" errors
13
9
  $SUPPRESS_32BIT_WARNING=1
14
-
15
10
  $HOBO_ARGV = ARGV
16
11
 
12
+ require 'hobo/init/bundler_context'
17
13
  require 'hobo'
18
14
 
19
15
  # Default main classes
@@ -45,6 +41,7 @@ slop = Slop.parse! do
45
41
  end
46
42
 
47
43
  on '--non-interactive', 'Run non-interactively. Defaults will be automatically used where possible.'
44
+ on '--skip-host-checks', 'Skip host checks'
48
45
  end
49
46
 
50
47
  Hobo.logger.formatter = proc do |severity, datetime, progname, msg|
@@ -55,7 +52,7 @@ opts = slop.to_hash
55
52
  Hobo.ui.interactive = !(opts[:'non-interactive'] == true)
56
53
 
57
54
  begin
58
- Hobo::Lib::HostCheck.check(:filter => /not_using_system_ruby/, :raise => true)
55
+ Hobo::Lib::HostCheck.check(:filter => /not_using_system_ruby/, :raise => true) unless opts[:'skip-host-checks']
59
56
  Hobo.cli = Hobo::Cli.new(slop: slop)
60
57
  Hobo.cli.start
61
58
  rescue Exception => error
data/hobo.gemspec CHANGED
@@ -13,7 +13,9 @@ Gem::Specification.new do |spec|
13
13
  spec.summary = %q{Inviqan toolbelt}
14
14
  spec.homepage = ""
15
15
 
16
- spec.files = `git ls-files`.split($/)
16
+ # This file will get interpretted at runtime due to Bundler.setup
17
+ # Without the $HOBO_ARGV check (set in bin/hobo) fatal: not a git repository errors show up
18
+ spec.files = `git ls-files`.split($/) unless $HOBO_ARGV
17
19
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
20
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
21
  spec.require_paths = ["lib"]
@@ -30,8 +32,12 @@ Gem::Specification.new do |spec|
30
32
  spec.add_dependency "teerb", "~> 0.0.1"
31
33
  spec.add_dependency "net-ssh-simple", "~> 1.6.3"
32
34
  spec.add_dependency "pry", "~> 0.9.12"
35
+
36
+ # Not actually a dep! gem insists on installing 1.6.2.rc2 however!
33
37
  spec.add_dependency "nokogiri", "= 1.6.1"
34
38
 
39
+ # This prevents Bundler.setup from complaining that rubygems did not install dev deps
40
+ # If you want to run dev deps you need to ensure HOBO_ENV=dev is set for bundle install & bundle exec
35
41
  if ENV['HOBO_ENV'] == 'dev'
36
42
  spec.add_development_dependency "aruba", "~> 0.5.4"
37
43
  spec.add_development_dependency "rspec", "~> 2.14.1"
data/lib/hobo.rb CHANGED
@@ -65,4 +65,4 @@ require 'hobo/lib/host_check/hobo'
65
65
  require 'hobo/lib/host_check'
66
66
 
67
67
  # App
68
- require 'hobo/cli'
68
+ require 'hobo/cli'
data/lib/hobo/cli.rb CHANGED
@@ -69,7 +69,7 @@ module Hobo
69
69
  return 0
70
70
  end
71
71
 
72
- # Displat help and exit
72
+ # Display help and exit
73
73
  # @param [Hash] Options to apss to help formatter.
74
74
  # Options are mostly used for filtering
75
75
  def show_help(opts = {})
@@ -125,7 +125,6 @@ module Hobo
125
125
  def define_global_opts slop
126
126
  slop.on '-a', '--all', 'Show hidden commands'
127
127
  slop.on '-h', '--help', 'Display help'
128
- slop.on '--skip-host-checks', 'Skip host checks'
129
128
 
130
129
  slop.on '-v', '--version', 'Print version information' do
131
130
  Hobo.ui.info "Hobo version #{Hobo::VERSION}"
@@ -0,0 +1,23 @@
1
+ # Hack to override Gemfile to that of hobo (otherwise it'll use project specific one!)
2
+ ENV['BUNDLE_GEMFILE'] = File.expand_path('../../../../Gemfile', __FILE__)
3
+
4
+ require 'shellwords'
5
+ require 'hobo/version'
6
+
7
+ # gem install != bundle install
8
+ # Gem may well skip some deps that bundler wants
9
+ bundler_check = File.join(ENV['HOME'], '.hobo', 'bundler_check')
10
+ unless File.exists?(bundler_check) && File.read(bundler_check).strip == Hobo::VERSION
11
+ `bundle check --gemfile=#{ENV['BUNDLE_GEMFILE'].shellescape}`
12
+ unless $?.success?
13
+ puts "Hobo has detected missing dependencies. Please wait while they're installed"
14
+ `bundle install --gemfile=#{ENV['BUNDLE_GEMFILE'].shellescape}`
15
+ Kernel.exec('hobo', *$HOBO_ARGV)
16
+ end
17
+ File.write(bundler_check, Hobo::VERSION)
18
+ end
19
+
20
+ require 'hobo/patches/rubygems'
21
+ require 'bundler'
22
+
23
+ Bundler.setup(:default)
@@ -3,7 +3,6 @@ module Hobo
3
3
  module HostCheck
4
4
  class << self
5
5
  include Hobo::Lib::HostCheck
6
-
7
6
  def check opts = {}
8
7
  opts = {
9
8
  :filter => nil,
@@ -6,7 +6,7 @@ module Hobo
6
6
  begin
7
7
  version = shell "vagrant --version", :capture => true
8
8
  version.gsub!(/^Vagrant /, '')
9
- version = ::Semantic::Version.new version
9
+ version = ::Semantic::Version.new version.strip
10
10
  minimum_version = ::Semantic::Version.new "1.3.5"
11
11
 
12
12
  advice = <<-EOF
@@ -4,7 +4,6 @@ namespace :deps do
4
4
 
5
5
  desc "Install Gem dependencies"
6
6
  task :gems do
7
- require 'bundler'
8
7
  locate "*Gemfile" do
9
8
  Hobo.ui.title "Installing Gem dependencies"
10
9
  shell "bundle", "install", realtime: true, indent: 2
data/lib/hobo/tasks/vm.rb CHANGED
@@ -19,9 +19,7 @@ namespace :vm do
19
19
  args.push color
20
20
  args.push opts
21
21
 
22
- Bundler.with_clean_env do
23
- shell *args
24
- end
22
+ shell *args
25
23
  end
26
24
 
27
25
  def windows_short dir
data/lib/hobo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Hobo
2
- VERSION = '0.0.10-rc9'
2
+ VERSION = '0.0.10-rc10'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hobo-inviqa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10.pre.rc9
4
+ version: 0.0.10.pre.rc10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Simons
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-08 00:00:00.000000000 Z
11
+ date: 2014-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slop
@@ -233,6 +233,7 @@ files:
233
233
  - lib/hobo/helper/http_download.rb
234
234
  - lib/hobo/helper/shell.rb
235
235
  - lib/hobo/helper/vm_command.rb
236
+ - lib/hobo/init/bundler_context.rb
236
237
  - lib/hobo/lib/host_check.rb
237
238
  - lib/hobo/lib/host_check/deps.rb
238
239
  - lib/hobo/lib/host_check/git.rb