vagrant-sptsync 0.0.19 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/vagrant-sptsync/commands/root.rb +13 -1
- data/lib/vagrant-sptsync/plugin.rb +0 -8
- data/lib/vagrant-sptsync/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
OGIzYTY3OWE3NjBmMmUyYTFmNTMyM2QyZmVhMjllYzYxYTliYjdhYg==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
YzBiZWE4NWQ1M2U4ZjhlMTA4NWFjZDkyMmM3NGIzZGYzZGVmYTIyOQ==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
MzVlZTgxMmI1NGY1YTRjYjAxYzE0NTcyNzhkMzc0NDZiNmE2ZjlhMWJiMzEy
|
|
10
|
+
YzdhNDk2ODM1MDhkOTg0MmEyOTRkZWYxZDdkMWMxZjcyNjVkYTQwNDM5MTBi
|
|
11
|
+
MDAxZWJmNDQxOGQ0MjQ3ZTVlNTVlMjE5MGFlNmYwMzAxYTc4OGE=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
MDI4Nzc3NDZhYTI1MGJlYWYwNjYxM2YwOGQxZDZkZWYxMmUxOGFiZmI2M2Y1
|
|
14
|
+
YTUzNzAxYmZiMGVkMDFkNzkzYzRhODk1OGQ0MDMzMzE4NzI0NDAxNDUyMzc5
|
|
15
|
+
MzljZmIxZDVjMDU5YjY1YWZmZjg3NzMwZGEwNWVjYTgwMDAwYWE=
|
|
@@ -23,6 +23,10 @@ module VagrantPlugins
|
|
|
23
23
|
opts.on("-s", "--site", "Specifies the site to pulldown. Defaults to share") do |site|
|
|
24
24
|
@options[:site] = site
|
|
25
25
|
end
|
|
26
|
+
|
|
27
|
+
opts.on("-h", "--help", "run help") do |site|
|
|
28
|
+
help
|
|
29
|
+
end
|
|
26
30
|
end
|
|
27
31
|
|
|
28
32
|
@servers = ['dev', 'qa', 'stage']
|
|
@@ -105,7 +109,7 @@ module VagrantPlugins
|
|
|
105
109
|
ssh_opts = { extra_args: ['-q'] } # make it quiet
|
|
106
110
|
with_target_vms(nil, single_target: true) do |vm|
|
|
107
111
|
env = vm.action(:ssh_run, ssh_run_command: command, ssh_opts: ssh_opts)
|
|
108
|
-
if env[:ssh_run_exit_status] !=
|
|
112
|
+
if env[:ssh_run_exit_status] != 0
|
|
109
113
|
raise SiteError.new(@options[:site])
|
|
110
114
|
end
|
|
111
115
|
end
|
|
@@ -116,6 +120,14 @@ module VagrantPlugins
|
|
|
116
120
|
@env.ui.info(@opts.help, :prefix => false)
|
|
117
121
|
end
|
|
118
122
|
|
|
123
|
+
class SiteError < Vagrant::Errors::VagrantError
|
|
124
|
+
error_key "site_error"
|
|
125
|
+
|
|
126
|
+
def initialize(site)
|
|
127
|
+
"#{site} is not a valid site"
|
|
128
|
+
end
|
|
129
|
+
end
|
|
130
|
+
|
|
119
131
|
end
|
|
120
132
|
end
|
|
121
133
|
end
|