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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YWQ3MGU4NTAwZTQxMjA4OWU2YjJkYTM2OTlhNmM0M2JlZjk5YmZjMg==
4
+ NDg5YWJiNWRiOGNhNGFhOGExODY1MjlhMjM2NWFlNjgxOTIxODIzMQ==
5
5
  data.tar.gz: !binary |-
6
- NTQ0MmM5ZjdlZmVmY2YyNDI1MTEzNjFkNzM2Y2ZkYmRjMjc3NWRlZg==
6
+ YTIyN2EyZmMwMjk4N2MxYTExMTEyNThkNjgwMzdkNmI3ZWYwMWFkMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MDQ4MzBhYzdmNGQyMzRhZGUxNDFkZGZlYWU1NTI5MTZmMWRkZTM5YzE0YzBj
10
- MWM5MDRiYTljMWM2YTg3ZDg2NDZhNmQ5M2NkNDkzZjg2NzVhNGZiZTkyN2Zm
11
- YzBhYjZmNzcxNzcyMjE5ZjYwOTY3MjUyMjI1YzM2ZDY0MzhiNDM=
9
+ YmUyNjc2NGM3NjU5NDgxYjk2NTYwYjMzYmMzZGM0Yjg0ODQzZGFiNTgyYjkz
10
+ YjA5NGM3NDUyNWVlYzE3MmZmNDRiZDc2NzliZmE4ODZlMGRiYjYyZmVhN2U5
11
+ OTg0YzMwZDAwYTg5MGI1MzQwNzhjM2M2OWViZDYzYWM5Yjg4NmU=
12
12
  data.tar.gz: !binary |-
13
- NjE0NjY4MWI2NmVhZDQyZmExNjJhOGJiYTkzNGM3N2IwMmYzMzk3MGFlOTEw
14
- ODUxNDU4Zjg2ZWE1OWE2MjllYjdlMTkyN2U5NTkzNjY0NmZjNGEwOTc3NDky
15
- MmMzN2VhNDQwY2NlMzg2YmM0YzczMzFjZTFmOGVkNGQ2MzU0Mzk=
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: command, ssh_opts: ssh_opts)
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
- "downloading files" => "sudo -E rsync --quiet --recursive --compress --times --rsh='ssh -l deploy' spt-#{server}.com:/var/www/deploy/current/sites/#{site}/files/ /var/www/deploy/current/sites/#{site}/files/",
79
- "setting file owner" => "sudo chown -R deploy:www-data /var/www/deploy/current/sites/#{site}/files/",
80
- "setting file permissions" => "sudo chmod -R 2775 /var/www/deploy/current/sites/#{site}/files/",
81
- "dropping database" => "drush @#{site} sql-drop -y && drush cc drush",
82
- "downloading database" => "ssh -l deploy spt-#{server}.com drush @#{site} sql-dump | drush @#{site} sql-cli",
83
- "updating dabase" => "drush @#{site} updb -y",
84
- "turning off css compressing" => "drush @#{site} vset preprocess_css 0 --yes",
85
- "turning off js compressing" => "drush @#{site} vset preprocess_js 0 --yes",
86
- "turning off block caching" => "drush @#{site} vset block_cache 0 --yes",
87
- "turning off page caching" => "drush @#{site} vset cache 0 --yes",
88
- "flushing block cache" => "drush @#{site} vset cache_content_flush_cache_block 0 --yes",
89
- "flushing page cache" => "drush @#{site} vset cache_content_flush_cache_page 0 --yes",
90
- "setting image permissions" => "drush @#{site} vset image_allow_insecure_derivatives 1 --yes",
91
- "turning on error reporting" => "drush @#{site} vset error_level 2 --yes",
92
- "turning on theme_swapper" => "drush @#{site} en theme_swapper -y",
93
- "turning on devel" => "drush @#{site} en devel -y",
94
- "disabling constant contact" => "drush @#{site} dis spt_constant_contact -y",
95
- "disabling cdn" => "drush @#{site} dis cdn -y",
96
- "clearing cache" => "drush @#{site} cc all",
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
 
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module SPTSync
3
- VERSION = "0.0.30"
3
+ VERSION = "0.0.31"
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.30
4
+ version: 0.0.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Sehr