xnlogic 1.0.32 → 1.0.33
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.
- checksums.yaml +4 -4
- data/lib/xnlogic/server_profile.rb +55 -0
- data/lib/xnlogic/templates/application/assets/index.html.tt +11 -7
- data/lib/xnlogic/templates/application/torquebox.yml.tt +0 -4
- data/lib/xnlogic/templates/vagrant/config/datomic.conf +2 -2
- data/lib/xnlogic/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3f221ea52071b57eea58d8a8a3710d808fa566d
|
4
|
+
data.tar.gz: f34fa2309c13a38bbf27d9fd4be59b117c96e3d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
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
|
-
|
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
|
|
@@ -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
|
28
|
-
stop on
|
27
|
+
start on runlevel [2345]
|
28
|
+
stop on runlevel [!2345]
|
29
29
|
|
30
30
|
respawn
|
31
31
|
respawn limit 10 5
|
data/lib/xnlogic/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|