bundlegem 0.0.8 → 0.0.9
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 +4 -4
- data/bin/bundlegem +6 -1
- data/changelog +22 -0
- data/config/config +1 -1
- data/lib/bundlegem.rb +5 -2
- data/lib/bundlegem/strings.rb +1 -0
- data/lib/bundlegem/templates/c_extension_gem/#{name}.gemspec.tt +2 -9
- data/lib/bundlegem/templates/c_extension_gem/Rakefile.tt +0 -12
- data/lib/bundlegem/templates/cli_gem/#{name}.gemspec.tt +3 -11
- data/lib/bundlegem/templates/cli_gem/Rakefile.tt +0 -19
- data/lib/bundlegem/templates/newgem/#{name}.gemspec.tt +2 -11
- data/lib/bundlegem/version.rb +1 -1
- metadata +3 -18
- data/lib/bundlegem/templates/service/#{name}.gemspec.tt +0 -34
- data/lib/bundlegem/templates/service/.travis.yml.tt +0 -3
- data/lib/bundlegem/templates/service/Gemfile.tt +0 -4
- data/lib/bundlegem/templates/service/LICENSE.txt.tt +0 -21
- data/lib/bundlegem/templates/service/README.md +0 -5
- data/lib/bundlegem/templates/service/README.md.tt +0 -23
- data/lib/bundlegem/templates/service/Rakefile.tt +0 -25
- data/lib/bundlegem/templates/service/bin/#{name}.tt +0 -27
- data/lib/bundlegem/templates/service/changelog.tt +0 -6
- data/lib/bundlegem/templates/service/gitignore.tt +0 -10
- data/lib/bundlegem/templates/service/lib/#{name}.rb.tt +0 -26
- data/lib/bundlegem/templates/service/lib/#{name}/version.rb.tt +0 -7
- data/lib/bundlegem/templates/service/rspec.tt +0 -2
- data/lib/bundlegem/templates/service/spec/newgem_spec.rb.tt +0 -11
- data/lib/bundlegem/templates/service/spec/spec_helper.rb.tt +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cec076a9879ca7bb53cda65888b40aba8174be8
|
4
|
+
data.tar.gz: 0021a3ec7df60172cbadd5d201e423959016bbce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5306857074368d183dbc712a2cdc317bea2555546f86e4f644cb49ecdf65a31621e1afcd7f9eb6618b5a1a17731d195d12bcc9f9a7779795f1d76e5cbec06d8a
|
7
|
+
data.tar.gz: 448a10ea5e3acfbe05aeed76736e686ca3e5466ebca2ef279b9344651ebb313d56c8e76beb1da9e38c9acb62bf4c0d7e9e59c9ac7d60eee96caecb1220222d8f
|
data/bin/bundlegem
CHANGED
@@ -8,7 +8,7 @@ require 'bundlegem'
|
|
8
8
|
|
9
9
|
|
10
10
|
if ARGV.length < 1
|
11
|
-
puts "
|
11
|
+
puts "Error: you need to specify a name for the project being created\n\n"
|
12
12
|
puts Bundlegem::HELP_MSG
|
13
13
|
exit 1
|
14
14
|
end
|
@@ -23,6 +23,11 @@ if ARGV[0] == "--list" or ARGV[0] == "-l"
|
|
23
23
|
exit 0
|
24
24
|
end
|
25
25
|
|
26
|
+
if ARGV[0] == "--version" or ARGV[0] == "-v"
|
27
|
+
puts Bundlegem.version
|
28
|
+
exit 0
|
29
|
+
end
|
30
|
+
|
26
31
|
if ARGV[0] == "--newtemplate"
|
27
32
|
puts "Sorry, I haven't been implemented, I don't have a lot of free time atm :("
|
28
33
|
exit 0
|
data/changelog
CHANGED
@@ -2,6 +2,28 @@
|
|
2
2
|
- CMD: --newtemplate to start new template
|
3
3
|
- I'll need to write a basic starter template that is educational
|
4
4
|
|
5
|
+
Completed:
|
6
|
+
- Nothing Yet
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
** 0.0.9 **
|
11
|
+
- Bugfix: there were misconfigurations with the Rakefiles for cli_gems and c_ect gems that were corrected
|
12
|
+
- Feature: `--version` option added
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
** 0.0.8 **
|
17
|
+
|
18
|
+
- Bugfix: fixes bug where git clone was attempted even when the a clone
|
19
|
+
already took place in a prior run
|
20
|
+
- Bugfix: fixes bug where I thought I was using something cool like figaro
|
21
|
+
but was not
|
22
|
+
- Bugfix: fixes bug where configuration wasn't loaded before running
|
23
|
+
--install-best-templates
|
24
|
+
- Bugfix: fixes bug where require pry was left in
|
25
|
+
|
26
|
+
|
5
27
|
|
6
28
|
** 0.0.7 **
|
7
29
|
|
data/config/config
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
# Comments made to this file will not be preserved
|
2
2
|
---
|
3
3
|
default_template: newgem
|
4
|
-
best_templates: https://github.com/TheNotary/arduino.git https://github.com/TheNotary/raspberry_pi_c.git https://github.com/TheNotary/docker_repo.git https://github.com/TheNotary/simple_frontend.git
|
4
|
+
best_templates: https://github.com/TheNotary/arduino.git https://github.com/TheNotary/raspberry_pi_c.git https://github.com/TheNotary/docker_repo.git https://github.com/TheNotary/simple_frontend.git https://github.com/tymeart/node_cli
|
data/lib/bundlegem.rb
CHANGED
@@ -11,14 +11,17 @@ module Bundlegem
|
|
11
11
|
|
12
12
|
class << self
|
13
13
|
|
14
|
+
def version
|
15
|
+
Bundlegem::VERSION
|
16
|
+
end
|
17
|
+
|
14
18
|
# lists available templates
|
15
19
|
def list
|
16
20
|
configurator = Configurator.new
|
17
21
|
# search through builtin
|
18
22
|
available_templates = [ { "predefined" => "newgem" },
|
19
23
|
{ "predefined" => "c_extension_gem" },
|
20
|
-
{ "predefined" => "cli_gem" }
|
21
|
-
{ "predefined" => "service" }]
|
24
|
+
{ "predefined" => "cli_gem" }]
|
22
25
|
|
23
26
|
# search through user downloaded
|
24
27
|
available_templates += configurator.user_downloaded_templates
|
data/lib/bundlegem/strings.rb
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = [<%=config[:email].inspect%>]
|
11
11
|
|
12
12
|
spec.summary = %q{TODO: Write a short summary, because Rubygems requires one.}
|
13
|
-
spec.description = %q{TODO: delete this line since you're in a hurry.}
|
13
|
+
# spec.description = %q{TODO: delete this line since you're in a hurry.}
|
14
14
|
spec.homepage = "https://github.com/<%=config[:author]%>/<%=config[:name]%>"
|
15
15
|
# spec.license = "MIT" # uncomment this line if MIT is the best license for your situation
|
16
16
|
|
@@ -18,18 +18,11 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.bindir = "exe"
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ["lib"]
|
21
|
-
<%- if config[:ext] -%>
|
22
21
|
spec.extensions = ["ext/<%=config[:underscored_name]%>/extconf.rb"]
|
23
|
-
<%- end -%>
|
24
22
|
|
25
|
-
if spec.respond_to?(:metadata)
|
26
|
-
spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com' to prevent pushes to rubygems.org, or delete to allow pushes to any server."
|
27
|
-
end
|
28
23
|
|
29
|
-
spec.add_development_dependency "bundler"
|
24
|
+
spec.add_development_dependency "bundler"
|
30
25
|
spec.add_development_dependency "rake", "~> 10.0"
|
31
|
-
<%- if config[:ext] -%>
|
32
26
|
spec.add_development_dependency "rake-compiler"
|
33
|
-
<%- end -%>
|
34
27
|
spec.add_development_dependency "rspec"
|
35
28
|
end
|
@@ -1,20 +1,9 @@
|
|
1
1
|
require "bundler/gem_tasks"
|
2
|
-
<% if config[:test] == 'minitest' -%>
|
3
|
-
require "rake/testtask"
|
4
|
-
|
5
|
-
Rake::TestTask.new(:test) do |t|
|
6
|
-
t.libs << "test"
|
7
|
-
end
|
8
|
-
|
9
|
-
task :default => :test
|
10
|
-
<% elsif config[:test] == 'rspec' -%>
|
11
2
|
require "rspec/core/rake_task"
|
12
3
|
|
13
4
|
RSpec::Core::RakeTask.new(:spec)
|
14
5
|
|
15
6
|
task :default => :spec
|
16
|
-
<% end -%>
|
17
|
-
<% if config[:ext] -%>
|
18
7
|
require "rake/extensiontask"
|
19
8
|
|
20
9
|
task :build => :compile
|
@@ -22,4 +11,3 @@ task :build => :compile
|
|
22
11
|
Rake::ExtensionTask.new("<%=config[:underscored_name]%>") do |ext|
|
23
12
|
ext.lib_dir = "lib/<%=config[:namespaced_path]%>"
|
24
13
|
end
|
25
|
-
<% end -%>
|
@@ -10,26 +10,18 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = [<%=config[:email].inspect%>]
|
11
11
|
|
12
12
|
spec.summary = %q{TODO: Write a short summary, because Rubygems requires one.}
|
13
|
-
spec.description = %q{TODO: delete this line since you're in a hurry.}
|
13
|
+
# spec.description = %q{TODO: delete this line since you're in a hurry.}
|
14
14
|
spec.homepage = "https://github.com/<%=config[:author]%>/<%=config[:name]%>"
|
15
|
-
# spec.license = "MIT" # uncomment
|
15
|
+
# spec.license = "MIT" # uncomment and replace with GPLv3, etc.
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
18
|
spec.bindir = "exe"
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ["lib"]
|
21
|
-
<%- if config[:ext] -%>
|
22
|
-
spec.extensions = ["ext/<%=config[:underscored_name]%>/extconf.rb"]
|
23
|
-
<%- end -%>
|
24
21
|
|
25
|
-
|
26
|
-
spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com' to prevent pushes to rubygems.org, or delete to allow pushes to any server."
|
27
|
-
end
|
22
|
+
# spec.add_dependency "bundler", "~> <%= config[:bundler_version] %>"
|
28
23
|
|
29
24
|
spec.add_development_dependency "bundler", "~> <%= config[:bundler_version] %>"
|
30
25
|
spec.add_development_dependency "rake", "~> 10.0"
|
31
|
-
<%- if config[:ext] -%>
|
32
|
-
spec.add_development_dependency "rake-compiler"
|
33
|
-
<%- end -%>
|
34
26
|
spec.add_development_dependency "rspec"
|
35
27
|
end
|
@@ -1,25 +1,6 @@
|
|
1
1
|
require "bundler/gem_tasks"
|
2
|
-
<% if config[:test] == 'minitest' -%>
|
3
|
-
require "rake/testtask"
|
4
|
-
|
5
|
-
Rake::TestTask.new(:test) do |t|
|
6
|
-
t.libs << "test"
|
7
|
-
end
|
8
|
-
|
9
|
-
task :default => :test
|
10
|
-
<% elsif config[:test] == 'rspec' -%>
|
11
2
|
require "rspec/core/rake_task"
|
12
3
|
|
13
4
|
RSpec::Core::RakeTask.new(:spec)
|
14
5
|
|
15
6
|
task :default => :spec
|
16
|
-
<% end -%>
|
17
|
-
<% if config[:ext] -%>
|
18
|
-
require "rake/extensiontask"
|
19
|
-
|
20
|
-
task :build => :compile
|
21
|
-
|
22
|
-
Rake::ExtensionTask.new("<%=config[:underscored_name]%>") do |ext|
|
23
|
-
ext.lib_dir = "lib/<%=config[:namespaced_path]%>"
|
24
|
-
end
|
25
|
-
<% end -%>
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = [<%=config[:email].inspect%>]
|
11
11
|
|
12
12
|
spec.summary = %q{TODO: Write a short summary, because Rubygems requires one.}
|
13
|
-
spec.description = %q{TODO: delete this line since you're in a hurry.}
|
13
|
+
# spec.description = %q{TODO: delete this line since you're in a hurry.}
|
14
14
|
spec.homepage = "https://github.com/<%=config[:author]%>/<%=config[:name]%>"
|
15
15
|
# spec.license = "MIT" # uncomment this line if MIT is the best license for your situation
|
16
16
|
|
@@ -18,18 +18,9 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.bindir = "exe"
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ["lib"]
|
21
|
-
<%- if config[:ext] -%>
|
22
|
-
spec.extensions = ["ext/<%=config[:underscored_name]%>/extconf.rb"]
|
23
|
-
<%- end -%>
|
24
21
|
|
25
|
-
if spec.respond_to?(:metadata)
|
26
|
-
spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com' to prevent pushes to rubygems.org, or delete to allow pushes to any server."
|
27
|
-
end
|
28
22
|
|
29
|
-
spec.add_development_dependency "bundler"
|
23
|
+
spec.add_development_dependency "bundler"
|
30
24
|
spec.add_development_dependency "rake", "~> 10.0"
|
31
|
-
<%- if config[:ext] -%>
|
32
|
-
spec.add_development_dependency "rake-compiler"
|
33
|
-
<%- end -%>
|
34
25
|
spec.add_development_dependency "rspec"
|
35
26
|
end
|
data/lib/bundlegem/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bundlegem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TheNotary
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -164,21 +164,6 @@ files:
|
|
164
164
|
- lib/bundlegem/templates/newgem/rspec.tt
|
165
165
|
- lib/bundlegem/templates/newgem/spec/#{name}_spec.rb.tt
|
166
166
|
- lib/bundlegem/templates/newgem/spec/spec_helper.rb.tt
|
167
|
-
- lib/bundlegem/templates/service/#{name}.gemspec.tt
|
168
|
-
- lib/bundlegem/templates/service/.travis.yml.tt
|
169
|
-
- lib/bundlegem/templates/service/Gemfile.tt
|
170
|
-
- lib/bundlegem/templates/service/LICENSE.txt.tt
|
171
|
-
- lib/bundlegem/templates/service/README.md
|
172
|
-
- lib/bundlegem/templates/service/README.md.tt
|
173
|
-
- lib/bundlegem/templates/service/Rakefile.tt
|
174
|
-
- lib/bundlegem/templates/service/bin/#{name}.tt
|
175
|
-
- lib/bundlegem/templates/service/changelog.tt
|
176
|
-
- lib/bundlegem/templates/service/gitignore.tt
|
177
|
-
- lib/bundlegem/templates/service/lib/#{name}.rb.tt
|
178
|
-
- lib/bundlegem/templates/service/lib/#{name}/version.rb.tt
|
179
|
-
- lib/bundlegem/templates/service/rspec.tt
|
180
|
-
- lib/bundlegem/templates/service/spec/newgem_spec.rb.tt
|
181
|
-
- lib/bundlegem/templates/service/spec/spec_helper.rb.tt
|
182
167
|
- lib/bundlegem/version.rb
|
183
168
|
- spec/bundlegem_spec.rb
|
184
169
|
- spec/spec_helper.rb
|
@@ -202,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
202
187
|
version: '0'
|
203
188
|
requirements: []
|
204
189
|
rubyforge_project:
|
205
|
-
rubygems_version: 2.
|
190
|
+
rubygems_version: 2.6.8
|
206
191
|
signing_key:
|
207
192
|
specification_version: 4
|
208
193
|
summary: this gem makes more gems!
|
@@ -1,34 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require '<%=config[:namespaced_path]%>/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = <%=config[:name].inspect%>
|
8
|
-
spec.version = <%=config[:constant_name]%>::VERSION
|
9
|
-
spec.authors = [<%=config[:author].inspect%>]
|
10
|
-
spec.email = [<%=config[:email].inspect%>]
|
11
|
-
|
12
|
-
spec.summary = %q{TODO: Write a short summary, because Rubygems requires one.}
|
13
|
-
spec.description = %q{TODO: delete this line since you're in a hurry.}
|
14
|
-
spec.homepage = "https://github.com/<%=config[:author]%>/<%=config[:name]%>"
|
15
|
-
spec.license = "MIT"
|
16
|
-
|
17
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
-
spec.bindir = "exe"
|
19
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
-
spec.require_paths = ["lib"]
|
21
|
-
|
22
|
-
|
23
|
-
if spec.respond_to?(:metadata)
|
24
|
-
spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com' to prevent pushes to rubygems.org, or delete to allow pushes to any server."
|
25
|
-
end
|
26
|
-
|
27
|
-
spec.add_dependency "thor"
|
28
|
-
spec.add_dependency "service_installer"
|
29
|
-
|
30
|
-
spec.add_development_dependency "bundler", "~> <%= config[:bundler_version] %>"
|
31
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
32
|
-
spec.add_development_dependency "pry"
|
33
|
-
|
34
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) <%=Time.now.year%> <%=config[:author]%>
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
@@ -1,5 +0,0 @@
|
|
1
|
-
== What's This?
|
2
|
-
|
3
|
-
This is a gem skeleton template. Ideally you can define your own and place them into ~/.bundle/templates and specify to use that template instead of the default template defined in bundler.
|
4
|
-
|
5
|
-
This skelton would be helpful if you needed to create a new ruby app that ran as a service on the installed machine. This skelton should include the base code required for building a daemon style ruby app, including an installation command, a start/stop/restart/status interface and of course a spot that says "# your daemon code goes here" where you could easily drop in, say, a write to a log file and a sleep 5000 instruction and you'd be pretty much set for rapidly spinning up a new gem of the daemon type.
|
@@ -1,23 +0,0 @@
|
|
1
|
-
# <%=config[:constant_name]%>
|
2
|
-
|
3
|
-
This is a service type gem! It runs as a daemon in the background!
|
4
|
-
|
5
|
-
TODO: Describe specifically what the service does, and why people would want to.
|
6
|
-
|
7
|
-
## Installation
|
8
|
-
|
9
|
-
Install the gem:
|
10
|
-
|
11
|
-
$ gem install <%=config[:name]%>
|
12
|
-
|
13
|
-
## Usage
|
14
|
-
|
15
|
-
TODO: Write usage instructions here
|
16
|
-
|
17
|
-
## Contributing
|
18
|
-
|
19
|
-
1. Fork it ( https://github.com/[my-github-username]/<%=config[:name]%>/fork )
|
20
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
21
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
22
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
23
|
-
5. Create a new Pull Request
|
@@ -1,25 +0,0 @@
|
|
1
|
-
require "bundler/gem_tasks"
|
2
|
-
<% if config[:test] == 'minitest' -%>
|
3
|
-
require "rake/testtask"
|
4
|
-
|
5
|
-
Rake::TestTask.new(:test) do |t|
|
6
|
-
t.libs << "test"
|
7
|
-
end
|
8
|
-
|
9
|
-
task :default => :test
|
10
|
-
<% elsif config[:test] == 'rspec' -%>
|
11
|
-
require "rspec/core/rake_task"
|
12
|
-
|
13
|
-
RSpec::Core::RakeTask.new(:spec)
|
14
|
-
|
15
|
-
task :default => :spec
|
16
|
-
<% end -%>
|
17
|
-
<% if config[:ext] -%>
|
18
|
-
require "rake/extensiontask"
|
19
|
-
|
20
|
-
task :build => :compile
|
21
|
-
|
22
|
-
Rake::ExtensionTask.new("<%=config[:underscored_name]%>") do |ext|
|
23
|
-
ext.lib_dir = "lib/<%=config[:namespaced_path]%>"
|
24
|
-
end
|
25
|
-
<% end -%>
|
@@ -1,27 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require 'thor'
|
4
|
-
require '<%=config[:namespaced_path]%>'
|
5
|
-
|
6
|
-
class BinRunner < Thor
|
7
|
-
|
8
|
-
desc "about", "About this file"
|
9
|
-
def about
|
10
|
-
<%=config[:constant_name]%>.about
|
11
|
-
end
|
12
|
-
|
13
|
-
desc "install", "This command checks the OS you're on and installs the gem as a service"
|
14
|
-
def install
|
15
|
-
<%=config[:constant_name]%>.install
|
16
|
-
end
|
17
|
-
|
18
|
-
desc "uninstall", "This command uninstalls the service from the OS"
|
19
|
-
def uninstall
|
20
|
-
<%=config[:constant_name]%>.uninstall
|
21
|
-
end
|
22
|
-
|
23
|
-
|
24
|
-
end
|
25
|
-
|
26
|
-
|
27
|
-
BinRunner.start
|
@@ -1,26 +0,0 @@
|
|
1
|
-
require "service_installer"
|
2
|
-
|
3
|
-
require "<%=config[:namespaced_path]%>/version"
|
4
|
-
|
5
|
-
<%- config[:constant_array].each_with_index do |c,i| -%>
|
6
|
-
<%= ' '*i %>module <%= c %>
|
7
|
-
<%- end -%>
|
8
|
-
|
9
|
-
<%= ' '*config[:constant_array].size %># Your code goes here...
|
10
|
-
|
11
|
-
<%= ' '*config[:constant_array].size %>def self.About
|
12
|
-
<%= ' '*config[:constant_array].size %>end
|
13
|
-
|
14
|
-
<%= ' '*config[:constant_array].size %>def self.Install
|
15
|
-
<%= ' '*config[:constant_array].size %> # s = ServiceInstaller.new
|
16
|
-
<%= ' '*config[:constant_array].size %> # s.install
|
17
|
-
<%= ' '*config[:constant_array].size %>end
|
18
|
-
|
19
|
-
<%= ' '*config[:constant_array].size %>def self.Uninstall
|
20
|
-
<%= ' '*config[:constant_array].size %>end
|
21
|
-
|
22
|
-
<%- (config[:constant_array].size-1).downto(0) do |i| -%>
|
23
|
-
|
24
|
-
<%= ' '*i %>end
|
25
|
-
|
26
|
-
<%- end -%>
|