vagrant-global-status 0.1.0 → 0.1.1

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: 604a21bf1c9c118e332c445290442c369b877c47
4
- data.tar.gz: a921da366043462f06f8b863888e5aa0e8b62969
3
+ metadata.gz: e40e29f2b549390b0bb362e45930ed4535d6929d
4
+ data.tar.gz: 3175e5209ef04079dbe803969aad2035663fd9e6
5
5
  SHA512:
6
- metadata.gz: 818a8857af249396e6a12a16051f1db3858fbe8358abee80b7012cd726419c433ecf562335748883b9a77669854846e00e00af7aa74935b65730240b17f45135
7
- data.tar.gz: 3ca978c30988061a728b8378090647d820279676d2eb7f4faef4869a25143b39ea80ab0418c29d731109f28cd3496a809b5c27f20f810bf57ca6c38d822b81f9
6
+ metadata.gz: b639fe228dedf105907d8270f181cb48778cf003e180877aa24aee5ba2001fea1cbbef031bd47f2545d08b59adab02cdf8baab0bcf5d1bbf319d4504e427af38
7
+ data.tar.gz: ac27cc6ab5aee09a16bc41414cbac37e9a3436397ccfab8cbc468c4284a59da4dcd0e58709a19c2233535b4737bbfa4f374dc9b960977bca8e6a18060916d7c1
@@ -0,0 +1,7 @@
1
+ ## [0.1.1](https://github.com/fgrehm/vagrant-lxc/compare/v0.0.3...v0.1.0) (March 27, 2013)
2
+
3
+ - Nicely handle removed directories [GH-2]
4
+
5
+ ## 0.1.0 (Aug 8, 2013)
6
+
7
+ First public release
@@ -31,7 +31,7 @@ GIT
31
31
  PATH
32
32
  remote: .
33
33
  specs:
34
- vagrant-global-status (0.1.0)
34
+ vagrant-global-status (0.1.1)
35
35
 
36
36
  GEM
37
37
  remote: https://rubygems.org/
@@ -12,6 +12,8 @@ module VagrantPlugins
12
12
 
13
13
  # REFACTOR: Extract a machine class
14
14
  def status(all = false)
15
+ return " Not found!" unless File.exists?(@path)
16
+
15
17
  matches = vagrant_status.scan(/(\w[\w-]+)\s+(\w[\w\s]+)\s+\((\w+)\)/)
16
18
  matches.map do |vm, status, provider|
17
19
  if all || @machine_names.include?(vm)
@@ -80,12 +82,16 @@ module VagrantPlugins
80
82
  end
81
83
 
82
84
  def run_vagrant_status
83
- cmd = "cd #{@path} && "
84
- if plugin_sources?
85
- cmd << "bundle exec "
85
+ if File.exists?(@path)
86
+ cmd = "cd #{@path} && "
87
+ if plugin_sources?
88
+ cmd << "bundle exec "
89
+ end
90
+ cmd << "vagrant status"
91
+ `#{cmd}`
92
+ else
93
+ `echo ""`
86
94
  end
87
- cmd << "vagrant status"
88
- `#{cmd}`
89
95
  end
90
96
 
91
97
  def plugin_sources?
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module GlobalStatus
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-global-status
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fabio Rehm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-12 00:00:00.000000000 Z
11
+ date: 2013-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -46,6 +46,7 @@ extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
48
  - .gitignore
49
+ - CHANGELOG.md
49
50
  - Gemfile
50
51
  - Gemfile.lock
51
52
  - LICENSE.txt