konstant 0.0.10 → 0.1.0

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: 844cdcef9dbf60a718874f11d07f016323979b6f
4
- data.tar.gz: 464a73ff0c116bafa98e1822fea90383ad09bdba
3
+ metadata.gz: badbe8b9512878125ed0393f9a1a5b9fe256d3e6
4
+ data.tar.gz: adfa63bfbe956b85fe83d716927eebe38bb19d5e
5
5
  SHA512:
6
- metadata.gz: 4c09f689988172b388406cb5600f5c1da81ea4526bea4991926a75f7c18e339499045b9704e677f754623f73884ce4ae1949760ed7a637fb17c7cfc305e87a4b
7
- data.tar.gz: f61db4594fae8bdb6918e372cf862f6ff10f7a2ae464b3d697059659885fdf620f81fe43248d7b95c24b110bbaa95f1dd65229e913c8e3cb3d4320bcd56adc6e
6
+ metadata.gz: 4521f0703978e9554ea5986fcf02caaddeb9039f027d6da38df5b5284660fef3e259b1b6d704713e6e2f76746d566d0fb804312d29809276c5b0a08ed2966293
7
+ data.tar.gz: f1040f4c3c22d9bd9cf3b13c4414a9ee434631172264f4796478931dddb3b7d8664686b25422c8724e47e5ee00dfe0d84542bccf4e66e1d0cf10d86bf2601c63
data/.gitignore CHANGED
@@ -15,3 +15,4 @@ mkmf.log
15
15
 
16
16
  projects
17
17
  konstant.js
18
+ konstant-*.conf
data/bin/konstant CHANGED
@@ -8,6 +8,8 @@ unless Konstant.env == "production"
8
8
  require "debugger"
9
9
  end
10
10
 
11
+ require "erb"
12
+
11
13
  cli = Konstant::Cli.new
12
14
  cli.parse_options
13
15
  command = cli.cli_arguments.first
@@ -70,7 +72,13 @@ case command
70
72
  Konstant.configure "./konstant.js"
71
73
  p Konstant.config
72
74
  when "init"
73
- system "cp -a #{Konstant.root}/data/templates/data_dir/* ."
75
+ # system "cp -a #{Konstant.root}/data/templates/data_dir/* ."
76
+ ["konstant-scheduler.conf", "konstant-web.conf"].each do |file|
77
+ tpl = ERB.new(File.read "#{Konstant.root}/data/templates/#{file}.erb")
78
+ File.open "#{Konstant.config["data_dir"]}/#{file}", "w" do |f|
79
+ f.write tpl.result(binding)
80
+ end
81
+ end
74
82
  when "generate"
75
83
  item = cli.cli_arguments[1]
76
84
 
@@ -0,0 +1,11 @@
1
+ description "konstant ci scheduler (<%= Konstant.config['data_dir'] %>)"
2
+
3
+ start on runlevel [2345]
4
+ stop on runlevel [!2345]
5
+
6
+ respawn
7
+
8
+ script
9
+ cd <%= Konstant.config['data_dir'] %>
10
+ konstant run -s
11
+ end script
@@ -0,0 +1,11 @@
1
+ description "konstant ci web server (<%= Konstant.config['data_dir'] %>)"
2
+
3
+ start on runlevel [2345]
4
+ stop on runlevel [!2345]
5
+
6
+ respawn
7
+
8
+ script
9
+ cd <%= Konstant.config['data_dir'] %>
10
+ konstant run -w
11
+ end script
@@ -1,3 +1,3 @@
1
1
  module Konstant
2
- VERSION = "0.0.10"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: konstant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moritz Schepp
@@ -140,6 +140,8 @@ files:
140
140
  - bin/konstant
141
141
  - data/templates/data_dir/konstant.js
142
142
  - data/templates/data_dir/projects/.gitkeep
143
+ - data/templates/konstant-scheduler.conf.erb
144
+ - data/templates/konstant-web.conf.erb
143
145
  - data/templates/project/build
144
146
  - data/templates/project/cleanup
145
147
  - data/templates/project/deploy