wslave 0.0.2 → 0.0.3

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: 7df0f722ba78348871b0a8e1ff5b7ce0f6c708f5
4
- data.tar.gz: 13522f3886ca1bb4ee0da327b0b1585308f5f83b
3
+ metadata.gz: b54a79db13b58bf73ce849736900dc1d2adaa472
4
+ data.tar.gz: 62e56f05ed2e0425004a143a74e515bafffd1f42
5
5
  SHA512:
6
- metadata.gz: a82e995669f06f918842f1669bd52f203c075ab822e77915a0f31622d750072272c077346b996b8907e99442ab7db8631559383b3b66080ba43359c8095f4feb
7
- data.tar.gz: 90120ae043b34d6118afb8d3f4ebf31658816a270ab44bd394cb023c19b3999cbb582b5308e7cfdb9ceb41240965e7a2ccb90dc8ba82f104ecd2654d280c6a58
6
+ metadata.gz: 315ed65aa38b26e07f08f7c19579517165ab126e544ec9f203bf1ae26b7e151e30c82f74840143936618e0c139907971c52b4cfe7613aac7bb46b7762bab5f4f
7
+ data.tar.gz: 5a81f459fb55f7343b01db45c8d04497d57734b1d11dc2c86cf2aefa1e4585f8960896ddd71d34bc36cef9f17146fd845d38862b0b998ccd26a337a67ae68d91
data/lib/wslave_docker.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require_relative 'wslave_tools'
2
+ require 'fileutils'
2
3
 
3
4
  class WSlaveDocker
4
5
  def initialize
@@ -8,6 +9,7 @@ class WSlaveDocker
8
9
  def server(force)
9
10
  return unless _check()
10
11
  _force_down() if force
12
+ _unfuck_dot_htaccess()
11
13
  WSlaveTools.set_dev_perms
12
14
  `docker-compose up -d`
13
15
  end
@@ -29,4 +31,9 @@ class WSlaveDocker
29
31
  def _force_down()
30
32
  `docker-compose down --remove-orphans`
31
33
  end
34
+
35
+ # Sometimes the docker container or a windows fs will screw up or delete .htaccess
36
+ def _unfuck_dot_htaccess()
37
+ FileUtils.cp_r("#{__dir__}/../base/public/.htaccess", "./public/.htaccess")
38
+ end
32
39
  end
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.2'
3
+ s.version = '0.0.3'
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 ' \
@@ -22,6 +22,6 @@ Gem::Specification.new do |s|
22
22
 
23
23
  s.add_dependency 'thor'
24
24
  s.add_dependency 'haikunator'
25
- s.add_dependency 'capistrano', '~> 3.8.1'
25
+ s.add_dependency 'capistrano', '~> 3.9.0'
26
26
  s.add_dependency 'capistrano-git-with-submodules', '~> 2.0'
27
27
  end
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.2
4
+ version: 0.0.3
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-08-31 00:00:00.000000000 Z
11
+ date: 2017-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 3.8.1
47
+ version: 3.9.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 3.8.1
54
+ version: 3.9.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: capistrano-git-with-submodules
57
57
  requirement: !ruby/object:Gem::Requirement