rcoli 0.5.1 → 0.5.2
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.
- data/Gemfile.lock +1 -1
- data/README.md +45 -1
- data/lib/rcoli/version.rb +1 -1
- data/rcoli.gemspec +1 -1
- metadata +4 -4
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,48 @@
|
|
1
1
|
RCoLi
|
2
2
|
=====
|
3
3
|
|
4
|
-
Library for development of command line applications in Ruby.
|
4
|
+
Library for development of command line applications in Ruby.
|
5
|
+
|
6
|
+
== Installation
|
7
|
+
|
8
|
+
$ gem install rcoli
|
9
|
+
|
10
|
+
== Example
|
11
|
+
|
12
|
+
#!/usr/bin/env ruby
|
13
|
+
|
14
|
+
require 'rcoli'
|
15
|
+
|
16
|
+
application("mytool") do
|
17
|
+
author "Operations Team"
|
18
|
+
version "1.0.0"
|
19
|
+
description "Tool for management of infrastructure"
|
20
|
+
|
21
|
+
flag short: 'd', long: 'debug' do |f|
|
22
|
+
f.description "Turn on debugging"
|
23
|
+
end
|
24
|
+
|
25
|
+
switch short: 'c', long: 'config' do |s|
|
26
|
+
s.description "Path of file with configuration"
|
27
|
+
end
|
28
|
+
|
29
|
+
command :node do |c|
|
30
|
+
c.description "Commands for creating and managing nodes"
|
31
|
+
c.command :create do |sc|
|
32
|
+
sc.description "Creates node"
|
33
|
+
sc.action do |global_opts, opts, args|
|
34
|
+
# your action here
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
c.command :remove do |sc|
|
39
|
+
sc.description "Remove node"
|
40
|
+
sc.action do |global_opts, opts, args|
|
41
|
+
# your action here
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
|
data/lib/rcoli/version.rb
CHANGED
data/rcoli.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.version = RCoLi::VERSION
|
8
8
|
s.authors = ["Jiri Pisa"]
|
9
9
|
s.email = ["jirka.pisa@gmail.com"]
|
10
|
-
s.homepage = "
|
10
|
+
s.homepage = "https://github.com/jiripisa/rcoli"
|
11
11
|
s.summary = "The complete solution for commandline application written in ruby."
|
12
12
|
s.description = "The complete solution for commandline application written in ruby."
|
13
13
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rcoli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -63,7 +63,7 @@ files:
|
|
63
63
|
- lib/rcoli/templates/help_command.erb
|
64
64
|
- lib/rcoli/version.rb
|
65
65
|
- rcoli.gemspec
|
66
|
-
homepage:
|
66
|
+
homepage: https://github.com/jiripisa/rcoli
|
67
67
|
licenses: []
|
68
68
|
post_install_message:
|
69
69
|
rdoc_options: []
|
@@ -77,7 +77,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
77
77
|
version: '0'
|
78
78
|
segments:
|
79
79
|
- 0
|
80
|
-
hash: -
|
80
|
+
hash: -3437254255706801343
|
81
81
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
82
82
|
none: false
|
83
83
|
requirements:
|
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
86
|
version: '0'
|
87
87
|
segments:
|
88
88
|
- 0
|
89
|
-
hash: -
|
89
|
+
hash: -3437254255706801343
|
90
90
|
requirements: []
|
91
91
|
rubyforge_project:
|
92
92
|
rubygems_version: 1.8.24
|