wslave 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 29d53a62cb4700f2be52f4cda9a588dabc09f268
4
- data.tar.gz: 62ea910bc7e401fb77309a1a09f23daa88e6ad92
3
+ metadata.gz: 645da0b0768a178ac500a481cab287bdb5a25050
4
+ data.tar.gz: 87a86964187ce77940adef285c5682114065511d
5
5
  SHA512:
6
- metadata.gz: ce3fda215dfac075252b8e56b5cd8f46f174912a53d44feb9a2acd6b63a4870677dac7cda8d1905a85669daabc2ae793abb93a9764de23b91af3f20afe72366a
7
- data.tar.gz: 68591981867390b5fdb2f3b6f11174288ffaff8c3665231b91c998a7d8ee11a0b4b2cd11ae60134fa61cd325b11fce8640783ad18bc59e452519d4789a412ff5
6
+ metadata.gz: 96dd98f69018d8dd5fd4f41f3cdd7ce07595975244afffb0a1ce51c40c197acfd47f8f3d504df3fcb2fc51245945401f5dbddc04efb55c349e6a348ccc1f2b78
7
+ data.tar.gz: 5df29223a9c70406449753695242fcf017244e67cc3f98a2a9e8bf94238ec221a199adc0e68327e5ae001d34a9f822f554ea1830cd0fd794e5d947da08407c3d
data/base/Rakefile CHANGED
@@ -43,3 +43,21 @@ namespace :db do
43
43
  end
44
44
  end
45
45
  end
46
+
47
+ namespace :staging do
48
+ desc 'Open an SSH session to the staging host in the staging directory'
49
+ task :ssh do
50
+ require 'yaml'
51
+ opts = YAML.load_file('config/definitions.yml')
52
+ exec("ssh #{opts['deployer']['user']}@#{opts['deployer']['host']['staging']} -t \"cd #{opts['deployer']['root']}/#{opts['deployer']['fqdn']['staging']}; exec \$SHELL -l\"")
53
+ end
54
+ end
55
+
56
+ namespace :production do
57
+ desc 'Open an SSH session to the staging host in the production directory'
58
+ task :ssh do
59
+ require 'yaml'
60
+ opts = YAML.load_file('config/definitions.yml')
61
+ exec("ssh #{opts['deployer']['user']}@#{opts['deployer']['host']['production']} -t \"cd #{opts['deployer']['root']}/#{opts['deployer']['fqdn']['production']}; exec \$SHELL -l\"")
62
+ end
63
+ end
@@ -2,7 +2,6 @@
2
2
  RewriteEngine On
3
3
  RewriteBase /
4
4
 
5
- # BEGIN WordPress
6
5
  RewriteRule ^$ wordpress/index.php [L]
7
6
 
8
7
  # Skip real files and directories
@@ -11,5 +10,7 @@
11
10
 
12
11
  # Otherwise send it to WordPress
13
12
  RewriteRule .* wordpress/index.php [L]
13
+
14
+ # BEGIN WordPress
14
15
  # END WordPress
15
16
  </IfModule>
data/lib/wslave_update.rb CHANGED
@@ -23,6 +23,7 @@ class WSlaveUpdate
23
23
  FileUtils.cp("#{base_path}/Rakefile", "#{path}/Rakefile")
24
24
  FileUtils.cp("#{base_path}/Dockerfile", "#{path}/Dockerfile")
25
25
  FileUtils.cp("#{base_path}/docker-compose.yml", "#{path}/docker-compose.yml")
26
+ FileUtils.cp("#{base_path}/public/.htaccess", "#{path}/public/.htaccess")
26
27
  FileUtils.cp_r(Dir.glob("#{base_path}/config/*"), "#{path}/config")
27
28
  FileUtils.cp("#{template_path}/config/database.yml", "#{path}/config/database.yml") unless File.exist? "#{path}/config/database.yml"
28
29
  FileUtils.cp("#{template_path}/config/definitions.yml", "#{path}/config/definitions.yml") unless File.exist? "#{path}/config/definitions.yml"
data/wslave.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'wslave'
3
- s.version = '0.0.8'
3
+ s.version = '0.0.9'
4
4
  s.licenses = ['GPL-3.0', 'AGPL-3.0']
5
5
  s.summary = '"Word Slave" generates and controls a WordPress installation'
6
6
  s.description = 'Word Slave includes the wslave command and a control library to generate a ' \
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wslave
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rei Kagetsuki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-12 00:00:00.000000000 Z
11
+ date: 2017-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -84,8 +84,6 @@ files:
84
84
  - base/config/deploy-tools/wp-config.php.erb
85
85
  - base/config/deploy-tools/wp-config.php.local
86
86
  - base/config/deploy.rb
87
- - base/config/deploy/.production.rb.swp
88
- - base/config/deploy/.staging.rb.swp
89
87
  - base/config/deploy/production.rb
90
88
  - base/config/deploy/staging.rb
91
89
  - base/docker-compose.yml
Binary file
Binary file