sapoku 0.1 → 0.1.1

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.
Files changed (2) hide show
  1. data/lib/sapoku.rb +7 -0
  2. metadata +1 -1
@@ -60,6 +60,7 @@ class Tadpole
60
60
  create_iptables
61
61
  output += "Creating nginx configuration file"
62
62
  create_nginx_config
63
+ output += "Rehashing nginx configuration"
63
64
  return output
64
65
  end
65
66
 
@@ -104,6 +105,12 @@ class Tadpole
104
105
 
105
106
  system("sudo mv #{@name}_nginx_config /opt/nginx/conf/containers/#{@name}.conf")
106
107
  end
108
+
109
+ # reload nginx configuration
110
+ # TODO: send reload signal instead
111
+ def rehash_nginx
112
+ `sudo /etc/init.d/nginx restart`
113
+ end
107
114
 
108
115
  # generate a new config file
109
116
  def create_lxc_config
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sapoku
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: