vagrant-sptsync 0.0.43 → 0.0.45
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +98 -0
- data/lib/vagrant-sptsync/commands/root.rb +6 -12
- data/lib/vagrant-sptsync/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: 376b82e3f15308876cbc9ef5f462caa6eb66d111
|
4
|
+
data.tar.gz: 46c69b88e831a7fe7e0c5a203933718ecd1b52fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5810949abe494c91df032c8170d4c65ef15951a76f4fb420ce42a03ca4c29af49543579e78188ef31dde1fecaf6ad7729454e2b2a2bb0d8fe99bb3e767f67ff
|
7
|
+
data.tar.gz: 07c82d654778f9e63cd7e9c001fb51ef8f1108f649d1ff63a8b1cada23fba866cb952307d8fef3cb43e1e9314b17831f0e8f66b20dedb8bb9a3ae2adc0a429f7
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,98 @@
|
|
1
|
+
GIT
|
2
|
+
remote: git://github.com/mitchellh/vagrant.git
|
3
|
+
revision: 89beb695f28ee280dc6965d04b42fbf0f34f676f
|
4
|
+
specs:
|
5
|
+
vagrant (1.6.4.dev)
|
6
|
+
bundler (>= 1.5.2, < 1.7.0)
|
7
|
+
childprocess (~> 0.5.0)
|
8
|
+
erubis (~> 2.7.0)
|
9
|
+
i18n (~> 0.6.0)
|
10
|
+
listen (~> 2.7.1)
|
11
|
+
log4r (~> 1.1.9, < 1.1.11)
|
12
|
+
net-scp (~> 1.1.0)
|
13
|
+
net-ssh (>= 2.6.6, < 2.10.0)
|
14
|
+
rb-kqueue (~> 0.2.0)
|
15
|
+
wdm (~> 0.1.0)
|
16
|
+
winrm (~> 1.1.3)
|
17
|
+
|
18
|
+
PATH
|
19
|
+
remote: .
|
20
|
+
specs:
|
21
|
+
vagrant-sptsync (0.0.45)
|
22
|
+
|
23
|
+
GEM
|
24
|
+
remote: https://rubygems.org/
|
25
|
+
specs:
|
26
|
+
akami (1.2.2)
|
27
|
+
gyoku (>= 0.4.0)
|
28
|
+
nokogiri
|
29
|
+
builder (3.2.2)
|
30
|
+
celluloid (0.15.2)
|
31
|
+
timers (~> 1.1.0)
|
32
|
+
childprocess (0.5.3)
|
33
|
+
ffi (~> 1.0, >= 1.0.11)
|
34
|
+
erubis (2.7.0)
|
35
|
+
ffi (1.9.3)
|
36
|
+
gssapi (1.0.3)
|
37
|
+
ffi (>= 1.0.1)
|
38
|
+
gyoku (1.1.1)
|
39
|
+
builder (>= 2.1.2)
|
40
|
+
httpclient (2.4.0)
|
41
|
+
httpi (0.9.7)
|
42
|
+
rack
|
43
|
+
i18n (0.6.11)
|
44
|
+
listen (2.7.9)
|
45
|
+
celluloid (>= 0.15.2)
|
46
|
+
rb-fsevent (>= 0.9.3)
|
47
|
+
rb-inotify (>= 0.9)
|
48
|
+
little-plugger (1.1.3)
|
49
|
+
log4r (1.1.10)
|
50
|
+
logging (1.8.2)
|
51
|
+
little-plugger (>= 1.1.3)
|
52
|
+
multi_json (>= 1.8.4)
|
53
|
+
mini_portile (0.6.0)
|
54
|
+
multi_json (1.10.1)
|
55
|
+
net-scp (1.1.2)
|
56
|
+
net-ssh (>= 2.6.5)
|
57
|
+
net-ssh (2.9.1)
|
58
|
+
nokogiri (1.6.3.1)
|
59
|
+
mini_portile (= 0.6.0)
|
60
|
+
nori (1.1.5)
|
61
|
+
rack (1.5.2)
|
62
|
+
rake (10.3.2)
|
63
|
+
rb-fsevent (0.9.4)
|
64
|
+
rb-inotify (0.9.5)
|
65
|
+
ffi (>= 0.5.0)
|
66
|
+
rb-kqueue (0.2.3)
|
67
|
+
ffi (>= 0.5.0)
|
68
|
+
rubyntlm (0.1.1)
|
69
|
+
savon (0.9.5)
|
70
|
+
akami (~> 1.0)
|
71
|
+
builder (>= 2.1.2)
|
72
|
+
gyoku (>= 0.4.0)
|
73
|
+
httpi (~> 0.9)
|
74
|
+
nokogiri (>= 1.4.0)
|
75
|
+
nori (~> 1.0)
|
76
|
+
wasabi (~> 1.0)
|
77
|
+
timers (1.1.0)
|
78
|
+
uuidtools (2.1.4)
|
79
|
+
wasabi (1.0.0)
|
80
|
+
nokogiri (>= 1.4.0)
|
81
|
+
wdm (0.1.0)
|
82
|
+
winrm (1.1.3)
|
83
|
+
gssapi (~> 1.0.0)
|
84
|
+
httpclient (~> 2.2, >= 2.2.0.2)
|
85
|
+
logging (~> 1.6, >= 1.6.1)
|
86
|
+
nokogiri (~> 1.5)
|
87
|
+
rubyntlm (~> 0.1.1)
|
88
|
+
savon (= 0.9.5)
|
89
|
+
uuidtools (~> 2.1.2)
|
90
|
+
|
91
|
+
PLATFORMS
|
92
|
+
ruby
|
93
|
+
|
94
|
+
DEPENDENCIES
|
95
|
+
bundler
|
96
|
+
rake
|
97
|
+
vagrant!
|
98
|
+
vagrant-sptsync!
|
@@ -27,6 +27,11 @@ module VagrantPlugins
|
|
27
27
|
@options[:site] = site
|
28
28
|
end
|
29
29
|
|
30
|
+
opts.on("-v", "--version [VERSION]", "Specifies the verion of the site to pulldown. Defaults to 3.0") do |site|
|
31
|
+
puts "site: #{site}"
|
32
|
+
@options[:site] = site
|
33
|
+
end
|
34
|
+
|
30
35
|
opts.on("-h", "--help", "run help") do |help|
|
31
36
|
@options[:help] = true
|
32
37
|
end
|
@@ -45,23 +50,11 @@ module VagrantPlugins
|
|
45
50
|
with_target_vms(nil, single_target: true) do |vm|
|
46
51
|
vm.config.exec.finalize! # TODO: do we have to call it explicitly?
|
47
52
|
|
48
|
-
# command = "drush @#{@options[:site]} status"
|
49
|
-
|
50
|
-
# ssh_opts = { extra_args: [] }
|
51
|
-
|
52
|
-
# env = vm.action(:ssh_run, ssh_run_command: command, ssh_opts: ssh_opts)
|
53
|
-
# puts env
|
54
|
-
|
55
|
-
# status = env[:ssh_run_exit_status] || 0
|
56
|
-
# return status
|
57
|
-
|
58
53
|
commands.each do |message, command|
|
59
54
|
vm.env.ui.info(message, :color => :green, :new_line => true)
|
60
55
|
ssh_opts = { extra_args: [] }
|
61
56
|
vm.action(:ssh_run, ssh_run_command: command, ssh_opts: ssh_opts)
|
62
57
|
end
|
63
|
-
#ssh_opts = { extra_args: [] }
|
64
|
-
#env = vm.action(:ssh_run, ssh_run_command: commands.join('&&'), ssh_opts: ssh_opts)
|
65
58
|
|
66
59
|
end
|
67
60
|
end
|
@@ -69,6 +62,7 @@ module VagrantPlugins
|
|
69
62
|
def commands
|
70
63
|
server = @options[:server]
|
71
64
|
site = @options[:site]
|
65
|
+
site = @options[:site] + '-' + @options[:version] if @options[:version]
|
72
66
|
commands = {
|
73
67
|
"downloading files" => "sudo -E rsync --recursive --compress --times --rsh='ssh -l deploy' spt-#{server}.com:/var/www/deploy/current/sites/#{site}/files/ /var/www/deploy/current/sites/#{site}/files/",
|
74
68
|
"setting file owner" => "sudo chown -R deploy:www-data /var/www/deploy/shared/#{site}/files/",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-sptsync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.45
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Sehr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -46,6 +46,7 @@ extra_rdoc_files: []
|
|
46
46
|
files:
|
47
47
|
- .gitignore
|
48
48
|
- Gemfile
|
49
|
+
- Gemfile.lock
|
49
50
|
- README.md
|
50
51
|
- Rakefile
|
51
52
|
- Vagrantfile
|