fastball 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/bin/fastball +6 -0
- data/lib/fastball/cli.rb +43 -0
- data/lib/fastball/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04f4d510dc7a38b7cd7262563c8e8a4be73f9d95
|
4
|
+
data.tar.gz: 941c15e6e6ad4f9cd4e6773d5c3b87e83297caed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e36857ea7edab916e2a393d492313eac0e81d1ac706289c0d47fd8434767a42927075a34f86be8c4f64200c453564ec401fca08172de88dff3eb060060a25b7
|
7
|
+
data.tar.gz: 2e20f3d26142045fb3b3c6c3a746703aa5a5119582fd31bef839ddaf2638845a22a0c47abe5f5a2acc61b7088a2894706a24e5995c5e35f4c19855cc839772d5
|
data/README.md
CHANGED
@@ -35,6 +35,12 @@ $ rake -T fastball
|
|
35
35
|
rake fastball:config # generate environment specific configuration files
|
36
36
|
```
|
37
37
|
|
38
|
+
You can also run fastball as a standalone command.
|
39
|
+
|
40
|
+
```
|
41
|
+
fastball config
|
42
|
+
```
|
43
|
+
|
38
44
|
## Documentation
|
39
45
|
|
40
46
|
See [Fastball::Config](http://www.rubydoc.info/github/jbgo/fastball/master/Fastball/Config)
|
data/bin/fastball
ADDED
data/lib/fastball/cli.rb
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
module Fastball
|
2
|
+
class CLI
|
3
|
+
attr_reader :argv
|
4
|
+
|
5
|
+
HELP = <<-DESC
|
6
|
+
usage: fastball COMMAND [options]
|
7
|
+
|
8
|
+
Fastball is the safest, fastest way to build and deploy dynamic applications.
|
9
|
+
|
10
|
+
Commands:
|
11
|
+
config - generate config files from erb templates
|
12
|
+
|
13
|
+
Examples:
|
14
|
+
fastball config
|
15
|
+
DESC
|
16
|
+
|
17
|
+
def initialize(argv)
|
18
|
+
@argv = argv
|
19
|
+
@command = argv.shift
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.help_text
|
23
|
+
HELP.gsub(/^ {6}/, '')
|
24
|
+
end
|
25
|
+
|
26
|
+
def help_text
|
27
|
+
self.class.help_text
|
28
|
+
end
|
29
|
+
|
30
|
+
def run
|
31
|
+
case @command
|
32
|
+
when 'config'
|
33
|
+
Fastball::Config.generate
|
34
|
+
when 'help'
|
35
|
+
puts help_text
|
36
|
+
else
|
37
|
+
puts help_text
|
38
|
+
exit 1
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
end
|
data/lib/fastball/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastball
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordan Bach
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -71,6 +71,7 @@ email:
|
|
71
71
|
- jordanbach@gmail.com
|
72
72
|
executables:
|
73
73
|
- console
|
74
|
+
- fastball
|
74
75
|
- setup
|
75
76
|
extensions: []
|
76
77
|
extra_rdoc_files: []
|
@@ -85,9 +86,11 @@ files:
|
|
85
86
|
- README.md
|
86
87
|
- Rakefile
|
87
88
|
- bin/console
|
89
|
+
- bin/fastball
|
88
90
|
- bin/setup
|
89
91
|
- fastball.gemspec
|
90
92
|
- lib/fastball.rb
|
93
|
+
- lib/fastball/cli.rb
|
91
94
|
- lib/fastball/config.rb
|
92
95
|
- lib/fastball/hash_dot.rb
|
93
96
|
- lib/fastball/tasks.rb
|
@@ -117,4 +120,3 @@ signing_key:
|
|
117
120
|
specification_version: 4
|
118
121
|
summary: The safest, fastest way to build and deploy dynamic applications.
|
119
122
|
test_files: []
|
120
|
-
has_rdoc:
|