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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Njg1NWEyNmM1NDA0MzhlMTk0NGQ0MjVjYTI4ZGRhODI1Y2FjMTQ5MQ==
4
+ ZTdlOWU3MzYyYTcwMmE0NDQ5ODA0MTM4NjI4ZDhjZjcwMzIwNDY1ZA==
5
5
  data.tar.gz: !binary |-
6
- ZDkxMjQ0NmVlMDU0M2E5ODk0OWRjNzhjMDE5MTZiYTQxMDI5NWI0YQ==
6
+ ZDNkNmJmZDQ3ZWI0YzFkY2Y0YTk4MGRkZTU1ZjcxMmU1NTc3YzhhOA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZjIwOGQyNGEyYWQ2NDkzOTJhMDU1NjMzOTNhZTI1YTIzNTE0YzdjODRlYTkz
10
- MDgwMWNkNzMyNTY1NzQxOTNiMTJmN2E4MTMwOTNhMDI0MWQzOWU4ZjE3NTRk
11
- M2U5NjE3NTA5YjMzZmI2ZGQ0ZWViZGI3YjBjZmZlNjdjMzJmM2I=
9
+ OGJkM2JmOThhYTlkZWVlNDU0Y2MyMGFlZTNmMGIxZDBkMGY2ZTU2MzJiN2Nl
10
+ MGI2Yzc4ZjM3NzljOTFmNGEzZTU3OTgyZDcwNzQ0NmY1NTU5NjEzNjAwZjcw
11
+ NzhiNGQyODE1NWFjMzcyYzI5ZDdhYWMwYTQ2Y2FhZGNlYzBhNjk=
12
12
  data.tar.gz: !binary |-
13
- YjM3MzU1YTAxYmRjYmQ4YTc5NTY2ZmZmMTk3MDJlZjVlZTRjMGVjY2NiNDVl
14
- MzZkYzAwOTg5M2VhY2MxOGE4ZDE0OTFlZTE5YjZkMGZmM2ExMmUyYjNmMTIx
15
- ZjE3MTlkNzAzZTJkYzc0MWMzOTRhZDM1OGM1NzYzZjQyMzNmZTU=
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
- env = vm.action(:ssh_run, ssh_run_command: command, ssh_opts: ssh_opts)
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 --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/",
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 cc drush",
77
- "ssh -l deploy spt-#{server}.com drush @#{site} sql-dump | drush @#{site} sql-cli",
78
- "drush @#{site} updb -y",
79
- "drush @#{site} vset preprocess_css 0 --yes",
80
- "drush @#{site} vset preprocess_js 0 --yes",
81
- "drush @#{site} vset block_cache 0 --yes",
82
- "drush @#{site} vset cache 0 --yes",
83
- "drush @#{site} vset cache_content_flush_cache_block 0 --yes",
84
- "drush @#{site} vset cache_content_flush_cache_page 0 --yes",
85
- "drush @#{site} vset image_allow_insecure_derivatives 1 --yes",
86
- "drush @#{site} vset error_level 2 --yes",
87
- "drush @#{site} en theme_swapper devel -y",
88
- "drush @#{site} dis cdn spt_constant_contact -y",
89
- "drush @#{site} cc all",
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
 
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module SPTSync
3
- VERSION = "0.0.33"
3
+ VERSION = "0.0.34"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-sptsync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.33
4
+ version: 0.0.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Sehr