vagrant-sptsync 0.0.30 → 0.0.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/vagrant-sptsync/commands/root.rb +24 -27
- 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
|
+
NDg5YWJiNWRiOGNhNGFhOGExODY1MjlhMjM2NWFlNjgxOTIxODIzMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTIyN2EyZmMwMjk4N2MxYTExMTEyNThkNjgwMzdkNmI3ZWYwMWFkMw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YmUyNjc2NGM3NjU5NDgxYjk2NTYwYjMzYmMzZGM0Yjg0ODQzZGFiNTgyYjkz
|
10
|
+
YjA5NGM3NDUyNWVlYzE3MmZmNDRiZDc2NzliZmE4ODZlMGRiYjYyZmVhN2U5
|
11
|
+
OTg0YzMwZDAwYTg5MGI1MzQwNzhjM2M2OWViZDYzYWM5Yjg4NmU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OWMzYmUwNDdjMjY4MjRjMjE3MTRmNzZiODA5MGFkZWIyMmQ4MDAxOTEyYjY5
|
14
|
+
ZDQ5NTE2MzNjMDliNDhiYTM1NTU1ZTYxMDdkN2JmOGY3MWQwMmIwZDQ0ZmU1
|
15
|
+
ZmIzM2M0YzZjN2NhODFmODY0ZDUyN2Q1ZTA3YzFhNjAyNzA5MGE=
|
@@ -57,16 +57,13 @@ module VagrantPlugins
|
|
57
57
|
# status = env[:ssh_run_exit_status] || 0
|
58
58
|
# return status
|
59
59
|
|
60
|
-
ssh = vm.action(:ssh_exec)
|
61
|
-
ssh.call("drush @share status")
|
62
|
-
|
63
60
|
# commands.each do |message, command|
|
64
61
|
# puts message
|
65
62
|
# ssh_opts = { extra_args: [] }
|
66
|
-
# env = vm.action(:ssh_run, ssh_run_command:
|
67
|
-
# status = env[:ssh_run_exit_status] || 0
|
68
|
-
# break if status != 0
|
63
|
+
# env = vm.action(:ssh_run, ssh_run_command: commands.join('&&'), ssh_opts: ssh_opts)
|
69
64
|
# end
|
65
|
+
ssh_opts = { extra_args: [] }
|
66
|
+
env = vm.action(:ssh_run, ssh_run_command: commands.join('&&'), ssh_opts: ssh_opts)
|
70
67
|
|
71
68
|
end
|
72
69
|
end
|
@@ -74,27 +71,27 @@ module VagrantPlugins
|
|
74
71
|
def commands
|
75
72
|
server = @options[:server]
|
76
73
|
site = @options[:site]
|
77
|
-
commands =
|
78
|
-
"
|
79
|
-
"
|
80
|
-
"
|
81
|
-
"
|
82
|
-
"
|
83
|
-
"
|
84
|
-
"
|
85
|
-
"
|
86
|
-
"
|
87
|
-
"
|
88
|
-
"
|
89
|
-
"
|
90
|
-
"
|
91
|
-
"
|
92
|
-
"
|
93
|
-
"
|
94
|
-
"
|
95
|
-
"
|
96
|
-
"
|
97
|
-
|
74
|
+
commands = [
|
75
|
+
"sudo -E rsync --quiet --recursive --compress --times --rsh='ssh -l deploy' spt-qa.com:/var/www/deploy/current/sites/es.axnwhite/files/ /var/www/deploy/current/sites/es.axnwhite/files/",
|
76
|
+
"sudo chown -R deploy:www-data /var/www/deploy/current/sites/#{site}/files/",
|
77
|
+
"sudo chmod -R 2775 /var/www/deploy/current/sites/#{site}/files/",
|
78
|
+
"drush @#{site} sql-drop -y && drush cc drush",
|
79
|
+
"ssh -l deploy spt-#{server}.com drush @#{site} sql-dump | drush @#{site} sql-cli",
|
80
|
+
"drush @#{site} updb -y",
|
81
|
+
"drush @#{site} vset preprocess_css 0 --yes",
|
82
|
+
"drush @#{site} vset preprocess_js 0 --yes",
|
83
|
+
"drush @#{site} vset block_cache 0 --yes",
|
84
|
+
"drush @#{site} vset cache 0 --yes",
|
85
|
+
"drush @#{site} vset cache_content_flush_cache_block 0 --yes",
|
86
|
+
"drush @#{site} vset cache_content_flush_cache_page 0 --yes",
|
87
|
+
"drush @#{site} vset image_allow_insecure_derivatives 1 --yes",
|
88
|
+
"drush @#{site} vset error_level 2 --yes",
|
89
|
+
"drush @#{site} en theme_swapper -y",
|
90
|
+
"drush @#{site} en devel -y",
|
91
|
+
"drush @#{site} dis spt_constant_contact -y",
|
92
|
+
"drush @#{site} dis cdn -y",
|
93
|
+
"drush @#{site} cc all",
|
94
|
+
]
|
98
95
|
commands
|
99
96
|
end
|
100
97
|
|