xnlogic 1.0.3 → 1.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 53c0bbebd47061647f31daa55f97fcb6d509ce8c
4
- data.tar.gz: 6e960006fe662c8a6d01e9dffee51ea5c7fad708
3
+ metadata.gz: bf6642954f98a009ba85907406706b15f4fb876b
4
+ data.tar.gz: 642836230ed76d0801fd742d68c068ab3e02a86a
5
5
  SHA512:
6
- metadata.gz: a29d09df746a5d75d8ac812f68caa16544bf9ae3c774f1a6c9fa4802c0cccb1f0085de581c2e9e89249f275b8bc77515e3aa7adfcc6bcf6a824e6ba0444b50f8
7
- data.tar.gz: ea0de41a5976d02531402b2525fe98ebf6c5c4e7be4e600f7acf63967fa320c512c3b6cf0513679526828498c59e4c510652ec0e745cfb7b3bc6717b054e1ec3
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 "no-color", :type => :boolean, :banner => "Disable colorization in output"
31
- class_option "verbose", :type => :boolean, :banner => "Enable verbose output mode", :aliases => "-V"
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
- option "base", type: :string, default: 'xnlogic', banner:
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
@@ -1,4 +1,5 @@
1
1
  begin
2
+ require 'pacer-model-compiled'
2
3
  require 'pacer-model'
3
4
  require '<%= config[:namespaced_path] %>'
4
5
  logger = TorqueBox::Logger.new("XN")
@@ -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
 
@@ -4,5 +4,5 @@ XN_CLIENT: '<%= config[:name] %>'
4
4
  timezone: 'America/Toronto'
5
5
  jruby_version: '1.7.16'
6
6
  DATOMIC_VERSION: '0.9.4755'
7
- vm_memory: '2048'
8
- vm_cpus: '2'
7
+ vm_memory: '<%= config[:vm_memory] %>'
8
+ vm_cpus: '<%= config[:vm_cpus] %>'
@@ -6,7 +6,8 @@ module Xnlogic
6
6
  attr_writer :shell
7
7
 
8
8
  def initialize(options = {})
9
- if options["no-color"] || !STDOUT.tty?
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
@@ -1,3 +1,3 @@
1
1
  module Xnlogic
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
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.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darrick Wiebe