bonethug 0.0.89 → 0.0.90

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: a71cdb3758ee1915ac34ab3fb16eae6ee884eacc
4
- data.tar.gz: 2f4c876a1b86f6755a5f66dc54c9775c090f869a
3
+ metadata.gz: 77465f9d1f7dcb7689e30cc85424e067c18ad1be
4
+ data.tar.gz: 9656c1ec690b082490a5644e25b3ed627b0c9c02
5
5
  SHA512:
6
- metadata.gz: 226e48016738db0286b52f9e7fff1f21439fea15eb8eb3830bb4007a59728d39758f72e2cf808a484bb6d0b608478eaca72f81679512b399f56f28cff349467a
7
- data.tar.gz: 8921f1c592f9d59804f91eddc5a98c2f504b9cdf612d529793cd70e2b7925ef50bf0ad0601c676d7eb80fda3552382cb0c1dfc47b0e4a1f7e0e2043a35878de0
6
+ metadata.gz: fef8f05c7fddd713500edd19d956b775466d67d45b99d6378ff9aa21e016cbb94f4dada4de129a40299a0eaaf97535549aff3770ae090c7b391f87d703100a9c
7
+ data.tar.gz: 847f44b43896b22a6bca0e9173c9503d3662e5ade9844722c62291d0cd01c92cc7feb1fc633740b405a903bede568b4a6a056785b42c82a067aa626194e40bf9
data/lib/bonethug/cli.rb CHANGED
@@ -189,7 +189,7 @@ module Bonethug
189
189
  else # apache
190
190
 
191
191
  # install the vhost
192
- system "sudo echo \"#{vh}\" > #{conf_path}/#{vhost}.conf"
192
+ system "echo \"#{vh}\" | sudo tee #{conf_path}/#{vhost}.conf"
193
193
 
194
194
  end
195
195
 
@@ -205,7 +205,7 @@ module Bonethug
205
205
  # this needs work
206
206
  system "sudo sed -i '/## BONETHUG-#{vhost} ##/,/## END_BONETHUG-#{vhost} ##/ s/.*//g' #{path}"
207
207
  escaped = (hosts).gsub(/"/, '\"')
208
- system "sudo echo \"#{escaped}\" >> #{path}"
208
+ system "echo \"#{escaped}\" | sudo tee -a #{path}"
209
209
 
210
210
  # reload apache - linux - but need a debian specific look up
211
211
  system "sudo a2ensite #{vhost} && sudo service apache2 restart" if RbConfig::CONFIG['target_os'] =~ /linux/i
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Bonethug
3
- VERSION = "0.0.89"
4
- BUILD_DATE = "2014-09-30 11:34:00 +1300"
3
+ VERSION = "0.0.90"
4
+ BUILD_DATE = "2014-10-22 15:40:01 +1300"
5
5
  end
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bonethug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.89
4
+ version: 0.0.90
5
5
  platform: ruby
6
6
  authors:
7
7
  - azt3k
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-29 00:00:00.000000000 Z
11
+ date: 2014-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler