xnlogic 1.0.38 → 1.0.39

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: fc4111984be1fc417fe78986cb0517ec967814c8
4
- data.tar.gz: e12af67f7dab1abbd3994e750356dfb4ca4176da
3
+ metadata.gz: a0ba4a44bf36ec61d2a41ab8cfdd243a4a499d49
4
+ data.tar.gz: 0f6ae558ef71ed8905289a59cf65fe360607f6dd
5
5
  SHA512:
6
- metadata.gz: bef4cc70bc4d4c90edab266e1717a1cbb2479bba6d2a05d669574282e89a6fa103db27c8c7fefa4aef83b537f186c3e88e51fc34ed4866fd9c308f35a5ff46f6
7
- data.tar.gz: 5077bd4e9979b37005a89b626f0f96253b660c160f425c6e09c5b2d46e9d4d7c7ade3ae16cf6973aa53bdf2791c14453e92735caaaf4ed47769bfb5b004d5800
6
+ metadata.gz: 9674d002f35022a00999256ea34c7dab2d05a04d03258a6450d11ca95cec65436fd0afbfd2ec8ade660daad601f7242643fdf43bd371576dfd271e73621f49e9
7
+ data.tar.gz: 558fe4928b331cce5b4e7f6be1fde6874693f8e097412c3125fa23727d5cf25b064cacf7a72965238a74c736cf36df85829952203c05d28319828b19e07436be
@@ -144,14 +144,20 @@ module Xnlogic
144
144
  git_user_name = `git config user.name`.chomp
145
145
  git_user_email = `git config user.email`.chomp
146
146
  {
147
- :name => name,
148
- :namespaced_path => namespaced_path,
149
- :constant_name => constant_name,
150
- :author => git_user_name.empty? ? "TODO: Write your name" : git_user_name,
151
- :email => git_user_email.empty? ? "TODO: Write your email address" : git_user_email,
152
- :vm_cpus => options['cpus'],
153
- :vm_memory => options['memory'],
154
- :xn_key => options['key'],
147
+ :name => name,
148
+ :namespaced_path => namespaced_path,
149
+ :constant_name => constant_name,
150
+ :author => git_user_name.empty? ? "TODO: Write your name" : git_user_name,
151
+ :email => git_user_email.empty? ? "TODO: Write your email address" : git_user_email,
152
+ :vm_cpus => options['cpus'],
153
+ :vm_memory => options['memory'],
154
+ :xn_key => options['key'],
155
+ :datomic_pro => options.fetch('datomic_pro', options['datomic_mysql']),
156
+ :datomic_mysql => options['datomic_mysql'],
157
+ :datomic_version => options['datomic_version'],
158
+ :default_datomic_version => "0.9.5130",
159
+ :datomic_username => options.fetch('datomic_username', '[username from my.datomic.com]'),
160
+ :datomic_key => options.fetch('datomic_key', '[key from my.datomic.com]'),
155
161
  }
156
162
  end
157
163
 
@@ -178,8 +184,14 @@ module Xnlogic
178
184
  "config/start.sh" => "config/start.sh",
179
185
  "config/transactor.properties" => "config/transactor.properties",
180
186
  "config/xnlogic.conf.tt" => "config/xnlogic.conf",
187
+ 'datomic/update_datomic.sh.tt' => 'script/update_datomic.sh',
181
188
  }
182
189
 
190
+ if options['datomic_pro'] || options['datomic_mysql']
191
+ base_templates['datomic/m2_settings.xml.tt'] = 'config/m2_settings.xml'
192
+ base_templates['datomic/pom.xml.tt'] = 'config/pom.xml'
193
+ end
194
+
183
195
  _generate_templates(base_templates, 'vagrant', template_options, 'Creating Vagrant configuration')
184
196
  end
185
197
 
data/lib/xnlogic/cli.rb CHANGED
@@ -69,6 +69,16 @@ module Xnlogic
69
69
  "Update the VM with the new provisioning settings"
70
70
  method_option "up", type: :boolean, banner:
71
71
  "Start the the VM (will provision automatically only on the first run)"
72
+ method_option "datomic_version", type: :string, banner:
73
+ "Optionally specify the desired Datomic version number"
74
+ method_option "datomic_pro", type: :boolean, banner:
75
+ "Use pacer-mcfly-pro instead of pacer-mcfly-free"
76
+ method_option "datomic_mysql", type: :boolean, banner:
77
+ "Add pacer-mcfly-mysql dependency. Implies datomic-pro."
78
+ method_option "datomic_username", type: :string, banner:
79
+ "Your my.datomic.com account username, needed for Datomic jar downloads"
80
+ method_option "datomic_key", type: :string, banner:
81
+ "Your my.datomic.com download key, needed for Datomic jar downloads"
72
82
  end
73
83
 
74
84
  desc "application [NAME] [OPTIONS]", <<EOD
@@ -25,7 +25,14 @@ Gem::Specification.new do |s|
25
25
  s.add_dependency 'pacer-model'
26
26
  s.add_dependency 'pacer-neo4j'
27
27
  s.add_dependency 'pacer-mcfly'
28
- s.add_dependency 'pacer-mcfly-free'
28
+ <% if config[:datomic_pro] -%>
29
+ s.add_dependency 'pacer-mcfly-pro'<%= ", " + config[:datomic_version].inspect if config[:datomic_version] %>
30
+ <% if config[:datomic_mysql] -%>
31
+ s.add_dependency 'pacer-mcfly-mysql'
32
+ <% end -%>
33
+ <% else -%>
34
+ s.add_dependency 'pacer-mcfly-free'<%= ", " + config[:datomic_version].inspect if config[:datomic_version] %>
35
+ <% end -%>
29
36
 
30
37
  s.add_dependency 'jruby-openssl', '0.9.6'
31
38
  s.add_dependency 'torquebox', '3.1.1'
@@ -13,3 +13,4 @@ tmp/
13
13
  .DS_Store
14
14
  Gemfile-custom
15
15
  tags
16
+ target
@@ -109,8 +109,9 @@ echo "alias gd='git diff -w'" >> ~/.zshrc
109
109
  echo "alias gdc='git diff -w --cached'" >> ~/.zshrc
110
110
 
111
111
  sudo apt-get install -y dos2unix
112
- silent dos2unix $SERVER_START_SCRIPT
112
+ silent dos2unix $SERVER_START_SCRIPT $HOME/$XN_CLIENT/script/*
113
113
  chmod +x $SERVER_START_SCRIPT
114
+ chmod +x $HOME/$XN_CLIENT/script/update_datomic.sh
114
115
 
115
116
  git config --global --add alias.co "checkout"
116
117
  git config --global --add alias.ci "commit"
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
3
+ <servers>
4
+ <server>
5
+ <id>my.datomic.com</id>
6
+ <username><%= config[:datomic_username] %></username>
7
+ <password><%= config[:datomic_key] %></password>
8
+ </server>
9
+ </servers>
10
+ </settings>
@@ -0,0 +1,28 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3
+ <modelVersion>4.0.0</modelVersion>
4
+ <groupId>com.xnlogic</groupId>
5
+ <artifactId>pro</artifactId>
6
+ <name>pro</name>
7
+ <packaging>jar</packaging>
8
+ <version>0.0.0</version>
9
+ <repositories>
10
+ <repository>
11
+ <id>my.datomic.com</id>
12
+ <url>https://my.datomic.com/repo</url>
13
+ <snapshots>
14
+ <enabled>false</enabled>
15
+ </snapshots>
16
+ <releases>
17
+ <enabled>true</enabled>
18
+ </releases>
19
+ </repository>
20
+ </repositories>
21
+ <dependencies>
22
+ <dependency>
23
+ <groupId>com.datomic</groupId>
24
+ <artifactId>datomic-pro</artifactId>
25
+ <version><%= config[:datomic_version] || config[:default_datomic_version] %></version>
26
+ </dependency>
27
+ </dependencies>
28
+ </project>
@@ -0,0 +1,10 @@
1
+ #! /bin/sh
2
+
3
+
4
+ cd $HOME/$XN_CLIENT/config
5
+ mkdir -p $HOME/.m2
6
+ cp m2_settings.xml $HOME/.m2/settings.xml
7
+ mvn package
8
+ cd -
9
+
10
+
@@ -1,3 +1,3 @@
1
1
  module Xnlogic
2
- VERSION = "1.0.38"
2
+ VERSION = "1.0.39"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xnlogic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.38
4
+ version: 1.0.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darrick Wiebe
@@ -131,7 +131,6 @@ files:
131
131
  - lib/xnlogic/templates/application/tasks/deploy.rb.tt
132
132
  - lib/xnlogic/templates/application/torquebox.yml.tt
133
133
  - lib/xnlogic/templates/application/torquebox_init.rb.tt
134
- - lib/xnlogic/templates/deploy/nginx.conf.tt
135
134
  - lib/xnlogic/templates/deploy/server_profiles/profile.rb.tt
136
135
  - lib/xnlogic/templates/vagrant/Gemfile.tt
137
136
  - lib/xnlogic/templates/vagrant/Vagrantfile.tt
@@ -140,6 +139,9 @@ files:
140
139
  - lib/xnlogic/templates/vagrant/config/transactor.properties
141
140
  - lib/xnlogic/templates/vagrant/config/vagrant.provision.tt
142
141
  - lib/xnlogic/templates/vagrant/config/xnlogic.conf.tt
142
+ - lib/xnlogic/templates/vagrant/datomic/m2_settings.xml.tt
143
+ - lib/xnlogic/templates/vagrant/datomic/pom.xml.tt
144
+ - lib/xnlogic/templates/vagrant/datomic/update_datomic.sh.tt
143
145
  - lib/xnlogic/ui.rb
144
146
  - lib/xnlogic/ui/shell.rb
145
147
  - lib/xnlogic/ui/silent.rb
File without changes