xnlogic 1.0.37 → 1.0.38
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/cli/application.rb +4 -2
- data/lib/xnlogic/templates/application/config/mcfly_config.yaml.tt +59 -0
- data/lib/xnlogic/templates/application/gemspec.tt +5 -4
- data/lib/xnlogic/templates/application/lib/gemname.rb.tt +10 -0
- data/lib/xnlogic/templates/vagrant/config/vagrant.provision.tt +10 -4
- data/lib/xnlogic/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fc4111984be1fc417fe78986cb0517ec967814c8
|
|
4
|
+
data.tar.gz: e12af67f7dab1abbd3994e750356dfb4ca4176da
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bef4cc70bc4d4c90edab266e1717a1cbb2479bba6d2a05d669574282e89a6fa103db27c8c7fefa4aef83b537f186c3e88e51fc34ed4866fd9c308f35a5ff46f6
|
|
7
|
+
data.tar.gz: 5077bd4e9979b37005a89b626f0f96253b660c160f425c6e09c5b2d46e9d4d7c7ade3ae16cf6973aa53bdf2791c14453e92735caaaf4ed47769bfb5b004d5800
|
|
@@ -2,7 +2,7 @@ require 'xnlogic/cli/core'
|
|
|
2
2
|
|
|
3
3
|
module Xnlogic
|
|
4
4
|
class CLI::Application < CLI::Core
|
|
5
|
-
attr_reader :app_name, :base_name, :name, :root
|
|
5
|
+
attr_reader :app_name, :base_name, :name, :root, :existing
|
|
6
6
|
|
|
7
7
|
def initialize(options, thor)
|
|
8
8
|
super
|
|
@@ -30,6 +30,7 @@ module Xnlogic
|
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
def in_existing_project
|
|
33
|
+
@existing = true
|
|
33
34
|
@root = options.fetch('root', '.')
|
|
34
35
|
@app = Pathname.pwd.join(root)
|
|
35
36
|
super()
|
|
@@ -62,7 +63,7 @@ module Xnlogic
|
|
|
62
63
|
options['application_version'] = Xnlogic::VERSION
|
|
63
64
|
write_options
|
|
64
65
|
Xnlogic.ui.info "Initializing git repo in #{app}"
|
|
65
|
-
Dir.chdir(app) { system 'git init' and system 'git add .' }
|
|
66
|
+
Dir.chdir(app) { system 'git init' and system 'git add .' } unless existing
|
|
66
67
|
|
|
67
68
|
install_vagrant_note
|
|
68
69
|
if options['up']
|
|
@@ -195,6 +196,7 @@ module Xnlogic
|
|
|
195
196
|
"logback.xml.tt" => "logback.xml",
|
|
196
197
|
"config.ru.tt" => "config.ru",
|
|
197
198
|
"dev/console.rb.tt" => "dev/console.rb",
|
|
199
|
+
"config/mcfly_config.yaml.tt" => "config/mcfly_config.yaml",
|
|
198
200
|
"tasks/deploy.rb.tt" => "tasks/deploy.rb",
|
|
199
201
|
"torquebox.yml.tt" => "torquebox.yml",
|
|
200
202
|
"torquebox_init.rb.tt" => "torquebox_init.rb",
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
development:
|
|
3
|
+
protocol: free
|
|
4
|
+
peer:
|
|
5
|
+
# These settings will only be effective on first load. They will have no effect after datomic is started.
|
|
6
|
+
"datomic.objectCacheMax": '64m'
|
|
7
|
+
|
|
8
|
+
production:
|
|
9
|
+
protocol: free
|
|
10
|
+
peer:
|
|
11
|
+
# These settings will only be effective on first load. They will have no effect after datomic is started.
|
|
12
|
+
"datomic.objectCacheMax": '512m'
|
|
13
|
+
# I am not certain that the memoryIndex* ones have any effect at all.
|
|
14
|
+
"datomic.memoryIndexMax":
|
|
15
|
+
"datomic.memoryIndexThreshold":
|
|
16
|
+
|
|
17
|
+
sample_sql:
|
|
18
|
+
protocol: sql
|
|
19
|
+
engine: mysql
|
|
20
|
+
database: datomic
|
|
21
|
+
user: datomic
|
|
22
|
+
password: datomic
|
|
23
|
+
host:
|
|
24
|
+
port:
|
|
25
|
+
|
|
26
|
+
sample_free:
|
|
27
|
+
protocol: free
|
|
28
|
+
host:
|
|
29
|
+
port:
|
|
30
|
+
h2port:
|
|
31
|
+
h2webport:
|
|
32
|
+
|
|
33
|
+
sample_dev:
|
|
34
|
+
protocol: dev
|
|
35
|
+
host:
|
|
36
|
+
|
|
37
|
+
sample_dynamo_db:
|
|
38
|
+
protocol: ddb
|
|
39
|
+
table: datomic
|
|
40
|
+
region:
|
|
41
|
+
accesskeyid:
|
|
42
|
+
secretkey:
|
|
43
|
+
|
|
44
|
+
sample_riak:
|
|
45
|
+
protocol: riak
|
|
46
|
+
bucket: datomic
|
|
47
|
+
interface: protobuf
|
|
48
|
+
host:
|
|
49
|
+
port:
|
|
50
|
+
|
|
51
|
+
sample_couchbase:
|
|
52
|
+
protocol: couchbase
|
|
53
|
+
bucket: datomic
|
|
54
|
+
password:
|
|
55
|
+
|
|
56
|
+
sample_infinispan:
|
|
57
|
+
protocol: inf
|
|
58
|
+
host:
|
|
59
|
+
port:
|
|
@@ -16,17 +16,18 @@ Gem::Specification.new do |s|
|
|
|
16
16
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
17
17
|
s.require_paths = ["lib"]
|
|
18
18
|
|
|
19
|
+
# Prevent accidental public pushes (only enforced in Rubygems >= 2.4)
|
|
20
|
+
s.required_rubygems_version = '>= 2.2.0'
|
|
21
|
+
s.metadata['allowed_push_host'] = 'https://your.server.here'
|
|
22
|
+
|
|
19
23
|
s.add_dependency 'rack', '1.5.2'
|
|
20
24
|
s.add_dependency 'pacer', '>= 2.0.6'
|
|
21
25
|
s.add_dependency 'pacer-model'
|
|
22
26
|
s.add_dependency 'pacer-neo4j'
|
|
23
27
|
s.add_dependency 'pacer-mcfly'
|
|
24
|
-
|
|
25
|
-
s.required_rubygems_version = '>= 2.2.0'
|
|
26
|
-
s.metadata['allowed_push_host'] = 'https://your.server.here'
|
|
28
|
+
s.add_dependency 'pacer-mcfly-free'
|
|
27
29
|
|
|
28
30
|
s.add_dependency 'jruby-openssl', '0.9.6'
|
|
29
|
-
|
|
30
31
|
s.add_dependency 'torquebox', '3.1.1'
|
|
31
32
|
s.add_dependency 'torquebox-messaging', '3.1.1'
|
|
32
33
|
s.add_development_dependency 'torquebox-remote-deployer', '0.1.1'
|
|
@@ -30,6 +30,14 @@ module <%= config[:constant_name] %>
|
|
|
30
30
|
Pathname.new(File.expand_path(__FILE__)).parent
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
+
def config_file(name)
|
|
34
|
+
lib_dir.parent + 'config' + name
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def env
|
|
38
|
+
ENV['XN_ENV'] || 'development'
|
|
39
|
+
end
|
|
40
|
+
|
|
33
41
|
def sample_app(args)
|
|
34
42
|
unless args.is_a? Hash
|
|
35
43
|
puts "sample_app takes an args hash with :graph and :client_name required."
|
|
@@ -84,6 +92,8 @@ end
|
|
|
84
92
|
require '<%= config[:namespaced_path] %>/version'
|
|
85
93
|
require '<%= config[:namespaced_path] %>/type'
|
|
86
94
|
|
|
95
|
+
PacerModel.load_mcfly_config_yaml(<%= config[:constant_name] %>.config_file('mcfly_config.yaml'), <%= config[:constant_name] %>.env)
|
|
96
|
+
|
|
87
97
|
PacerModel.applications['<%= config[:name] %>'] = <%= config[:constant_name] %>
|
|
88
98
|
PacerModel.property_namespaces << <%= config[:constant_name] %>::Type::Property
|
|
89
99
|
PacerModel.argument_namespaces << <%= config[:constant_name] %>::Type::Argument
|
|
@@ -19,7 +19,6 @@ printf "%$(tput cols)s\n"|tr " " "-"
|
|
|
19
19
|
|
|
20
20
|
hr
|
|
21
21
|
echo "Configuring environment"
|
|
22
|
-
hr
|
|
23
22
|
export XN_CLIENT=<%= config[:name] %>
|
|
24
23
|
export DATOMIC_VERSION=0.9.4755
|
|
25
24
|
export DEBIAN_FRONTEND=noninteractive
|
|
@@ -36,6 +35,9 @@ silent sudo dpkg-reconfigure --frontend noninteractive tzdata
|
|
|
36
35
|
hr
|
|
37
36
|
echo "Configuring XN gems"
|
|
38
37
|
hr
|
|
38
|
+
## We need to stick to 1.7.11 in order to be able bundle a new XN app (xnlogic dependency)
|
|
39
|
+
gem uninstall -Ix -i /home/vagrant/.rvm/gems/jruby-*@global bundler
|
|
40
|
+
gem install bundler -v 1.7.11
|
|
39
41
|
|
|
40
42
|
<% if config[:xn_key] -%>
|
|
41
43
|
silent gem sources --add https://<%= config[:xn_key] %>@gems.xnlogic.com/
|
|
@@ -51,7 +53,7 @@ sudo mkdir -p /opt/xn_apps
|
|
|
51
53
|
sudo chown vagrant /opt/xn_apps
|
|
52
54
|
cd
|
|
53
55
|
|
|
54
|
-
wget http://s3.amazonaws.com/xn-dev/dist/xn.dev.1.0.
|
|
56
|
+
wget http://s3.amazonaws.com/xn-dev/dist/xn.dev.1.0.38.tbz -O $HOME/xn.dev.tbz --quiet
|
|
55
57
|
tar -xjf xn.dev.tbz
|
|
56
58
|
rm xn.dev.tbz
|
|
57
59
|
cd xn.dev
|
|
@@ -63,8 +65,12 @@ if [ -d $HOME/$XN_CLIENT/assets ]; then
|
|
|
63
65
|
hr
|
|
64
66
|
echo "Configuring Assets"
|
|
65
67
|
cd $HOME/$XN_CLIENT/assets
|
|
66
|
-
|
|
67
|
-
|
|
68
|
+
if [ -f Gemfile ]; then
|
|
69
|
+
bundle install
|
|
70
|
+
fi
|
|
71
|
+
if [ -f package.json ]; then
|
|
72
|
+
npm install
|
|
73
|
+
fi
|
|
68
74
|
fi
|
|
69
75
|
|
|
70
76
|
## Uncomment to upgrade Datomic
|
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.38
|
|
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-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|
|
@@ -110,6 +110,7 @@ files:
|
|
|
110
110
|
- lib/xnlogic/templates/application/assets/images/xnlogic-logo-site.png
|
|
111
111
|
- lib/xnlogic/templates/application/assets/index.html.tt
|
|
112
112
|
- lib/xnlogic/templates/application/config.ru.tt
|
|
113
|
+
- lib/xnlogic/templates/application/config/mcfly_config.yaml.tt
|
|
113
114
|
- lib/xnlogic/templates/application/dev/console.rb.tt
|
|
114
115
|
- lib/xnlogic/templates/application/gemspec.tt
|
|
115
116
|
- lib/xnlogic/templates/application/gitignore.tt
|