xnlogic 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xnlogic/cli/application.rb +2 -0
- data/lib/xnlogic/cli.rb +7 -3
- data/lib/xnlogic/templates/application/config.ru.tt +1 -0
- data/lib/xnlogic/templates/vagrant/config/vagrant.provision.tt +8 -0
- data/lib/xnlogic/templates/vagrant/config/vagrant.settings.yml.tt +2 -2
- data/lib/xnlogic/ui/shell.rb +2 -1
- data/lib/xnlogic/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf6642954f98a009ba85907406706b15f4fb876b
|
4
|
+
data.tar.gz: 642836230ed76d0801fd742d68c068ab3e02a86a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3851f5264bfedb9878e087e0bc027ebb20d7ab9a3bc7bf701840b8c7ac25ffe4e3c09f19612123537a237b15604945a2649e67e5c77d41007a26d674cc9e8a0
|
7
|
+
data.tar.gz: e1375b82416106fee57cb156e69505323d084a4df7b5eff88f1201c61f2fa547cd5a2c93277c94bcf72824c84d0f2a268045adea0c78cc8a78c3c027d455d09e
|
@@ -27,6 +27,8 @@ module Xnlogic
|
|
27
27
|
:constant_name => constant_name,
|
28
28
|
:author => git_user_name.empty? ? "TODO: Write your name" : git_user_name,
|
29
29
|
:email => git_user_email.empty? ? "TODO: Write your email address" : git_user_email,
|
30
|
+
:vm_cpus => options['cpus'],
|
31
|
+
:vm_memory => options['memory'],
|
30
32
|
}
|
31
33
|
|
32
34
|
base_templates = {
|
data/lib/xnlogic/cli.rb
CHANGED
@@ -27,8 +27,8 @@ module Xnlogic
|
|
27
27
|
# is useful if you have a task that can receive arbitrary additional options, and where those additional options should not be handled by Thor.
|
28
28
|
stop_on_unknown_option! :exec
|
29
29
|
|
30
|
-
class_option "
|
31
|
-
class_option "verbose", :type => :boolean, :banner => "Enable verbose output mode"
|
30
|
+
class_option "color", :type => :boolean, default: true, :banner => "Enable colorization in output"
|
31
|
+
class_option "verbose", :type => :boolean, :banner => "Enable verbose output mode"
|
32
32
|
|
33
33
|
def help(cli = nil)
|
34
34
|
case cli
|
@@ -54,8 +54,12 @@ module Xnlogic
|
|
54
54
|
end
|
55
55
|
|
56
56
|
desc "application NAME [OPTIONS]", "Creates a skeleton of an XN Logic application"
|
57
|
-
|
57
|
+
method_option "base", type: :string, default: 'xnlogic', banner:
|
58
58
|
"The project is structured ./base_directory/application_directory. Name the base_directory"
|
59
|
+
method_option "cpus", type: :numeric, default: 2, banner:
|
60
|
+
"Number of Virtual CPUs the Development VM should use"
|
61
|
+
method_option "memory", type: :numeric, default: 2048, banner:
|
62
|
+
"Amount of RAM to allow the Development VM to use (in MB)"
|
59
63
|
def application(name)
|
60
64
|
require 'xnlogic/cli/application'
|
61
65
|
Application.new(options, name, self).run
|
@@ -120,7 +120,15 @@ rake --quiet new_tb_version bundle_fe_server fresh_fe_config fe_server_db_init
|
|
120
120
|
|
121
121
|
hr
|
122
122
|
echo "Starting Datomic"
|
123
|
+
hr
|
124
|
+
cd $HOME
|
125
|
+
wget https://www.dropbox.com/s/07wwxn8mbujxugb/datomic-free-0.9.4699.zip?dl=1 --quiet -O datomic.zip
|
126
|
+
unzip datomic.zip
|
127
|
+
rm datomic.zip
|
128
|
+
sudo mv datomic-free-0.9.4699 /usr/local/lib/datomic
|
123
129
|
sudo cp $HOME/xn.dev/config/etc_init_datomic.conf /etc/init/datomic.conf
|
130
|
+
sudo mkdir -p /etc/datomic
|
131
|
+
sudo cp $HOME/xn.dev/config/transactor.properties /etc/datomic/transactor.properties
|
124
132
|
sudo initctl reload-configuration
|
125
133
|
sudo start datomic
|
126
134
|
|
data/lib/xnlogic/ui/shell.rb
CHANGED
@@ -6,7 +6,8 @@ module Xnlogic
|
|
6
6
|
attr_writer :shell
|
7
7
|
|
8
8
|
def initialize(options = {})
|
9
|
-
if options["
|
9
|
+
if options["color"] == false || !STDOUT.tty?
|
10
|
+
# FIXME: Apparently the basic shell now does color
|
10
11
|
Thor::Base.shell = Thor::Shell::Basic
|
11
12
|
end
|
12
13
|
@shell = Thor::Base.shell.new
|
data/lib/xnlogic/version.rb
CHANGED