skybox 0.2.3 → 0.2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/skybox +36 -0
- data/lib/skybox/version.rb +1 -1
- metadata +6 -4
data/bin/skybox
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
$:.unshift(File.dirname(__FILE__) + '/../lib')
|
3
|
+
|
4
|
+
require 'rubygems'
|
5
|
+
require 'skybox'
|
6
|
+
require 'skydb'
|
7
|
+
require 'commander/import'
|
8
|
+
|
9
|
+
################################################################################
|
10
|
+
# Initialization
|
11
|
+
################################################################################
|
12
|
+
|
13
|
+
# CLI Setup
|
14
|
+
program :name, 'Skybox'
|
15
|
+
program :version, Skybox::VERSION
|
16
|
+
program :description, 'Sky-based Analytics Frontend.'
|
17
|
+
default_command :server
|
18
|
+
|
19
|
+
# Catch signals
|
20
|
+
Signal.trap('TERM') { Process.kill('KILL', 0) }
|
21
|
+
|
22
|
+
|
23
|
+
################################################################################
|
24
|
+
# Commands
|
25
|
+
################################################################################
|
26
|
+
|
27
|
+
command :server do |c|
|
28
|
+
c.syntax = 'skybox server'
|
29
|
+
c.description = 'Runs the Skybox server.'
|
30
|
+
c.option '--port PORT', Integer, 'HTTP server port'
|
31
|
+
c.action do |args, options|
|
32
|
+
options.default :port => 10000
|
33
|
+
Skybox::App.run!(:port => options.port)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
data/lib/skybox/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: skybox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.3
|
4
|
+
version: 0.2.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -190,7 +190,8 @@ dependencies:
|
|
190
190
|
description:
|
191
191
|
email:
|
192
192
|
- benbjohnson@yahoo.com
|
193
|
-
executables:
|
193
|
+
executables:
|
194
|
+
- skybox
|
194
195
|
extensions: []
|
195
196
|
extra_rdoc_files: []
|
196
197
|
files:
|
@@ -218,6 +219,7 @@ files:
|
|
218
219
|
- lib/skybox/views/layout.erb
|
219
220
|
- lib/skybox.rb
|
220
221
|
- README.md
|
222
|
+
- bin/skybox
|
221
223
|
homepage: http://github.com/skydb/skybox
|
222
224
|
licenses: []
|
223
225
|
post_install_message:
|
@@ -232,7 +234,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
232
234
|
version: '0'
|
233
235
|
segments:
|
234
236
|
- 0
|
235
|
-
hash:
|
237
|
+
hash: 4266038721710341627
|
236
238
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
237
239
|
none: false
|
238
240
|
requirements:
|
@@ -241,7 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
241
243
|
version: '0'
|
242
244
|
segments:
|
243
245
|
- 0
|
244
|
-
hash:
|
246
|
+
hash: 4266038721710341627
|
245
247
|
requirements: []
|
246
248
|
rubyforge_project:
|
247
249
|
rubygems_version: 1.8.25
|