xnlogic 1.0.32 → 1.0.33

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: c669d10588ce880f6b3cae84899617d2575be19e
4
- data.tar.gz: 1729e6912092335730eec4719a2ddc174bfe9bed
3
+ metadata.gz: a3f221ea52071b57eea58d8a8a3710d808fa566d
4
+ data.tar.gz: f34fa2309c13a38bbf27d9fd4be59b117c96e3d2
5
5
  SHA512:
6
- metadata.gz: 3b4a88a090f82fe8341dc748433550243bfe7a675d4ce116fd312463b28c88eb01abd7670809f1a0442c17d2a243c779cd6b986f06c946752b9bf428354d8256
7
- data.tar.gz: 413ce09d9ea88ce8d171fb06444aebb6441a0945e41ae1a23f943ed0a520e7e70dddd2b43bfbb96e59dff69c14a2826e465c7c27e8e2d020c50f6303009614ee
6
+ metadata.gz: 0089c0755da04fc0cde6e9f1c99ab8b96b354bd7986afc61d8d2ce3c22693ac36e5a2d467d2dea0aacfc51dc1ec189c30ca7372ddad8331dfed304a39313aea4
7
+ data.tar.gz: ccec13c61e5826f89b109bf7dc609e57dd4e7d0e06c51834003b0ba82eb28c79ca60cafb3d0ad6f7a61540383847606780a38eb9f14a0a8d0ffcabdf5fa4bd07
@@ -68,3 +68,58 @@ else
68
68
  DeployConfig.configure(&config_block)
69
69
  end
70
70
  end
71
+
72
+ if defined?(Capistrano)
73
+ # Captures Capistrano-relevant configuration from a server profile.
74
+ class CapConfig
75
+ class << self
76
+ attr_reader :roles, :variables
77
+
78
+ def configure(&config_block)
79
+ @roles = {}
80
+ @variables = {}
81
+ instance_eval &config_block
82
+ end
83
+
84
+ # config_binding is the binding taken from the Capistrano configuration file
85
+ def apply_config(config_binding)
86
+ roles.each { |role, user| config_binding.eval("role #{role.inspect}, #{user.inspect}") }
87
+ variables.each { |name, val| config_binding.eval("set #{name.inspect}, #{val.inspect}") }
88
+ end
89
+
90
+ # Setters
91
+
92
+ def hostname(hn)
93
+ @roles[:web] = hn
94
+ end
95
+
96
+ def api_hostname(hn)
97
+ @variables[:api_hostname] = hn
98
+ end
99
+
100
+ def user(u)
101
+ @variables[:user] = u
102
+ end
103
+
104
+ def method_missing(symbol, *args)
105
+ # Swallow config settings we don't care about
106
+ end
107
+ end
108
+ end
109
+
110
+ def configure_server(&config_block)
111
+ CapConfig.configure(&config_block)
112
+ end
113
+ else # torquebox remote deployer
114
+ # Monkey patching this to extend the configuration
115
+ class TorqueBox::RemoteDeploy
116
+ def api_hostname(hn)
117
+ # Unused
118
+ end
119
+ end
120
+
121
+ def configure_server(&config_block)
122
+ TorqueBox::RemoteDeploy.configure(&config_block)
123
+ end
124
+ end
125
+
@@ -3,16 +3,20 @@
3
3
  <head>
4
4
  <title>Welcome to <%= config[:name] %> on xnlogic!</title>
5
5
  <style>
6
- body {
7
- width: 35em;
8
- margin: 0 auto;
9
- font-family: Tahoma, Verdana, Arial, sans-serif;
10
- }
6
+ body {
7
+ width: 35em;
8
+ margin: 0 auto;
9
+ font-family: Tahoma, Verdana, Arial, sans-serif;
10
+ }
11
+ h1 {
12
+ background: url('images/xnlogic-logo-site-x2.png') no-repeat;
13
+ padding-left: 200px;
14
+ padding-bottom: 50px;
15
+ }
11
16
  </style>
12
17
  </head>
13
18
  <body>
14
- <img src="images/xnlogic-logo-site-x2.png" />
15
- <h1>Welcome to <%= config[:name] %> on xnlogic!</h1>
19
+ <h1>Welcome to <%= config[:name] %>!</h1>
16
20
  <p>If you see this page, the xnlogic web server is successfully installed and
17
21
  working. Further configuration is required, please follow the <a href="http://xnlogic.github.io/getting_started">xnlogic Getting Started guide</a>.</p>
18
22
 
@@ -9,10 +9,6 @@ environment:
9
9
  APPS_PATH: /opt/xn_apps
10
10
  XN_BKP_PATH: /opt/xn_bkp
11
11
  XN_CLIENT: '<%= config[:namespaced_path] %>'
12
- # In production:
13
- # APPS_PATH: /home/deploy/xn_apps
14
- # XN_BKP_PATH: /home/deploy/xn_bkp
15
-
16
12
 
17
13
  topics:
18
14
  /topics/jobs:
@@ -24,8 +24,8 @@ setgid root
24
24
  exec test -x $DAEMON || echo "$DESC Already running" && exit 1
25
25
  description "$DESC"
26
26
 
27
- start on started networking
28
- stop on stopping networking
27
+ start on runlevel [2345]
28
+ stop on runlevel [!2345]
29
29
 
30
30
  respawn
31
31
  respawn limit 10 5
@@ -1,3 +1,3 @@
1
1
  module Xnlogic
2
- VERSION = "1.0.32"
2
+ VERSION = "1.0.33"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xnlogic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.32
4
+ version: 1.0.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darrick Wiebe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-08 00:00:00.000000000 Z
11
+ date: 2015-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor