vagrant-sptsync 0.0.33 → 0.0.34
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 +22 -22
- 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
|
+
ZTdlOWU3MzYyYTcwMmE0NDQ5ODA0MTM4NjI4ZDhjZjcwMzIwNDY1ZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDNkNmJmZDQ3ZWI0YzFkY2Y0YTk4MGRkZTU1ZjcxMmU1NTc3YzhhOA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OGJkM2JmOThhYTlkZWVlNDU0Y2MyMGFlZTNmMGIxZDBkMGY2ZTU2MzJiN2Nl
|
10
|
+
MGI2Yzc4ZjM3NzljOTFmNGEzZTU3OTgyZDcwNzQ0NmY1NTU5NjEzNjAwZjcw
|
11
|
+
NzhiNGQyODE1NWFjMzcyYzI5ZDdhYWMwYTQ2Y2FhZGNlYzBhNjk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjU0NWM1NWNhZTUzNTcyMGJiOWQ5M2M0YmQ5YzBhNjcwNjljYjBjZDg0NmJh
|
14
|
+
YzZkODM3MTg3ZjY2NTA3NjYxYThjMTc2MDI4OGVmNjE5OTc4MDk5ZDFjZDc1
|
15
|
+
MTNlMTc0MzFhYzg0YjgwNWUxY2ExMjViNTk0MmYzZGM5NzRhNTY=
|
@@ -55,9 +55,10 @@ module VagrantPlugins
|
|
55
55
|
# status = env[:ssh_run_exit_status] || 0
|
56
56
|
# return status
|
57
57
|
|
58
|
-
commands.each do |command|
|
58
|
+
commands.each do |message, command|
|
59
|
+
machine.env.ui.info(message, :color => :blue, :new_line => true)
|
59
60
|
ssh_opts = { extra_args: [] }
|
60
|
-
|
61
|
+
vm.action(:ssh_run, ssh_run_command: command, ssh_opts: ssh_opts)
|
61
62
|
end
|
62
63
|
#ssh_opts = { extra_args: [] }
|
63
64
|
#env = vm.action(:ssh_run, ssh_run_command: commands.join('&&'), ssh_opts: ssh_opts)
|
@@ -68,26 +69,25 @@ module VagrantPlugins
|
|
68
69
|
def commands
|
69
70
|
server = @options[:server]
|
70
71
|
site = @options[:site]
|
71
|
-
commands =
|
72
|
-
"sudo -E rsync --
|
73
|
-
"sudo chown -R deploy:www-data /var/www/deploy/current/sites/#{site}/files/",
|
74
|
-
"sudo chmod -R 2775 /var/www/deploy/current/sites/#{site}/files/",
|
75
|
-
"drush @#{site} sql-drop -y",
|
76
|
-
"drush
|
77
|
-
"
|
78
|
-
"drush @#{site}
|
79
|
-
"drush @#{site} vset
|
80
|
-
"drush @#{site} vset
|
81
|
-
"drush @#{site} vset
|
82
|
-
"drush @#{site} vset
|
83
|
-
"drush @#{site} vset
|
84
|
-
"drush @#{site} vset
|
85
|
-
"drush @#{site} vset
|
86
|
-
"drush @#{site}
|
87
|
-
"drush @#{site}
|
88
|
-
"drush @#{site}
|
89
|
-
|
90
|
-
]
|
72
|
+
commands = {
|
73
|
+
"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
|
+
"setting file owner" => "sudo chown -R deploy:www-data /var/www/deploy/current/sites/#{site}/files/",
|
75
|
+
"setting file permissions" => "sudo chmod -R 2775 /var/www/deploy/current/sites/#{site}/files/",
|
76
|
+
"dropping database" => "drush @#{site} sql-drop -y && drush cc drush",
|
77
|
+
"downloading database" => "ssh -l deploy spt-#{server}.com drush @#{site} sql-dump | drush @#{site} sql-cli",
|
78
|
+
"updating dabase" => "drush @#{site} updb -y",
|
79
|
+
"turning off css compressing" => "drush @#{site} vset preprocess_css 0 --yes",
|
80
|
+
"turning off js compressing" => "drush @#{site} vset preprocess_js 0 --yes",
|
81
|
+
"turning off block caching" => "drush @#{site} vset block_cache 0 --yes",
|
82
|
+
"turning off page caching" => "drush @#{site} vset cache 0 --yes",
|
83
|
+
"flushing block cache" => "drush @#{site} vset cache_content_flush_cache_block 0 --yes",
|
84
|
+
"flushing page cache" => "drush @#{site} vset cache_content_flush_cache_page 0 --yes",
|
85
|
+
"setting image permissions" => "drush @#{site} vset image_allow_insecure_derivatives 1 --yes",
|
86
|
+
"turning on error reporting" => "drush @#{site} vset error_level 2 --yes",
|
87
|
+
"turning on devel and theme_swapper" => "drush @#{site} en devel theme_swapper -y",
|
88
|
+
"disabling cdn and constant contact" => "drush @#{site} dis cdn spt_constant_contact -y",
|
89
|
+
"clearing cache" => "drush @#{site} cc all",
|
90
|
+
}
|
91
91
|
commands
|
92
92
|
end
|
93
93
|
|