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 +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +1 -1
- data/lib/vagrant-global-status/global_environment.rb +11 -5
- data/lib/vagrant-global-status/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e40e29f2b549390b0bb362e45930ed4535d6929d
|
4
|
+
data.tar.gz: 3175e5209ef04079dbe803969aad2035663fd9e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b639fe228dedf105907d8270f181cb48778cf003e180877aa24aee5ba2001fea1cbbef031bd47f2545d08b59adab02cdf8baab0bcf5d1bbf319d4504e427af38
|
7
|
+
data.tar.gz: ac27cc6ab5aee09a16bc41414cbac37e9a3436397ccfab8cbc468c4284a59da4dcd0e58709a19c2233535b4737bbfa4f374dc9b960977bca8e6a18060916d7c1
|
data/CHANGELOG.md
ADDED
data/Gemfile.lock
CHANGED
@@ -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
|
-
|
84
|
-
|
85
|
-
|
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?
|
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.
|
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-
|
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
|