plumbus 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/bin/plumbus +11 -2
- data/lib/plumbus.rb +1 -0
- data/lib/plumbus/file_generators.rb +16 -0
- data/lib/plumbus/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4dabb2b43686bbe4664df505ee743844dc1e484
|
4
|
+
data.tar.gz: da5d3d94c1cb64f113d8be9e529f2c1848f14699
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67e680d7ba3f1b61b0e9f8b62d288d76ec0f03e14be5882fb084f7a9064dd1afd6d27605d39b43a6ce189ba9a1a3deefa2d905a5b8f881930bed4b5b22819440
|
7
|
+
data.tar.gz: 9c06ad2dd62d77340751bf0108b729243a2e12e65b511653db91e7a051708fbfc4b19b30dca4625b8b6cb12901a8eb6fea890a62f52aa62f3ddf2be30fcbe1ee
|
data/.gitignore
CHANGED
data/bin/plumbus
CHANGED
@@ -1,17 +1,26 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
+
lib = File.expand_path('../lib', __FILE__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
|
3
6
|
require "bundler/setup"
|
4
7
|
require "plumbus"
|
5
8
|
require 'yaml'
|
6
9
|
require 'optparse'
|
7
10
|
|
8
11
|
parser = OptionParser.new do |opts|
|
9
|
-
opts.banner = "Usage: plumbus config"
|
12
|
+
opts.banner = "Usage: plumbus [-g path] [config]"
|
13
|
+
|
14
|
+
#Generate a new project
|
15
|
+
opts.on "-g path" do |path|
|
16
|
+
Plumbus::FileGenerators.new_project path
|
17
|
+
exit
|
18
|
+
end
|
19
|
+
|
10
20
|
end
|
11
21
|
parser.parse!
|
12
22
|
|
13
23
|
unless config_path = ARGV.pop
|
14
|
-
$stderr.puts parser
|
15
24
|
exit -1
|
16
25
|
end
|
17
26
|
|
data/lib/plumbus.rb
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
module Plumbus
|
2
|
+
module FileGenerators
|
3
|
+
def self.new_project path
|
4
|
+
Dir.chdir path do
|
5
|
+
File.open "Gemfile", "w" do |g|
|
6
|
+
g.puts "source 'https://rubygems.org'"
|
7
|
+
g.puts "gem 'plumbus'"
|
8
|
+
end
|
9
|
+
|
10
|
+
File.open "routes", "w" do |g|
|
11
|
+
g << "#routes"
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/plumbus/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plumbus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- seo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -101,6 +101,7 @@ files:
|
|
101
101
|
- lib/plumbus.rb
|
102
102
|
- lib/plumbus/driver.rb
|
103
103
|
- lib/plumbus/driver_facilities.rb
|
104
|
+
- lib/plumbus/file_generators.rb
|
104
105
|
- lib/plumbus/helpers/remove_references.rb
|
105
106
|
- lib/plumbus/helpers/trim.rb
|
106
107
|
- lib/plumbus/loader.rb
|