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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b89f274da67d1f431e10b3d41cca145b5499b0f
4
- data.tar.gz: d46ab230187b679ad802a982992eb2ff500315bf
3
+ metadata.gz: a4dabb2b43686bbe4664df505ee743844dc1e484
4
+ data.tar.gz: da5d3d94c1cb64f113d8be9e529f2c1848f14699
5
5
  SHA512:
6
- metadata.gz: b3b36c8a6264c6c03305d4f5aa56372369fac782404e7f91fda78112e118d21cab0c99c09e42a84d9e81815ba6af549071f2fb4fedff1225f960780118fe5c4d
7
- data.tar.gz: 6ed57aac6f1582a7b9b94b23d720c638a7d9039c05d1e077115e097c835ea6437ccfedadd7f0d6d057cdd04f160df8f8c6db0a49d38173a39774e4f6a92c2bfd
6
+ metadata.gz: 67e680d7ba3f1b61b0e9f8b62d288d76ec0f03e14be5882fb084f7a9064dd1afd6d27605d39b43a6ce189ba9a1a3deefa2d905a5b8f881930bed4b5b22819440
7
+ data.tar.gz: 9c06ad2dd62d77340751bf0108b729243a2e12e65b511653db91e7a051708fbfc4b19b30dca4625b8b6cb12901a8eb6fea890a62f52aa62f3ddf2be30fcbe1ee
data/.gitignore CHANGED
@@ -8,3 +8,4 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  .DS_Store
11
+ *.gem
@@ -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
 
@@ -4,6 +4,7 @@ require "plumbus/driver"
4
4
  require "plumbus/port"
5
5
  require "plumbus/ports"
6
6
  require "plumbus/loader"
7
+ require "plumbus/file_generators"
7
8
 
8
9
  require "plumbus/helpers/trim"
9
10
  require "plumbus/helpers/remove_references"
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Plumbus
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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-14 00:00:00.000000000 Z
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