omnibus-ctl 0.3.5 → 0.6.4

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.
metadata CHANGED
@@ -1,15 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omnibus-ctl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
- - Opscode, Inc.
7
+ - Chef Software, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-24 00:00:00.000000000 Z
11
+ date: 2021-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: chefstyle
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 2.0.9
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 2.0.9
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
13
41
  - !ruby/object:Gem::Dependency
14
42
  name: rspec
15
43
  requirement: !ruby/object:Gem::Requirement
@@ -41,18 +69,19 @@ dependencies:
41
69
  description: Provides command line control for omnibus pakcages, rarely used as a
42
70
  gem
43
71
  email:
44
- - legal@opscode.com
72
+ - legal@chef.io
45
73
  executables:
46
74
  - omnibus-ctl
47
75
  extensions: []
48
76
  extra_rdoc_files: []
49
77
  files:
50
- - README.md
78
+ - LICENSE
51
79
  - bin/omnibus-ctl
52
80
  - lib/omnibus-ctl.rb
53
81
  - lib/omnibus-ctl/version.rb
54
- homepage: http://github.com/opscode/omnibus-ctl
55
- licenses: []
82
+ homepage: http://github.com/chef/omnibus-ctl
83
+ licenses:
84
+ - Apache-2.0
56
85
  metadata: {}
57
86
  post_install_message:
58
87
  rdoc_options: []
@@ -62,17 +91,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
91
  requirements:
63
92
  - - ">="
64
93
  - !ruby/object:Gem::Version
65
- version: '0'
94
+ version: '2.6'
66
95
  required_rubygems_version: !ruby/object:Gem::Requirement
67
96
  requirements:
68
97
  - - ">="
69
98
  - !ruby/object:Gem::Version
70
99
  version: '0'
71
100
  requirements: []
72
- rubyforge_project:
73
- rubygems_version: 2.2.2
101
+ rubygems_version: 3.1.4
74
102
  signing_key:
75
103
  specification_version: 4
76
104
  summary: Provides command line control for omnibus packages
77
105
  test_files: []
78
- has_rdoc:
data/README.md DELETED
@@ -1,87 +0,0 @@
1
- ## omnibus-ctl
2
-
3
- [![Build Status Master](https://travis-ci.org/chef/omnibus-ctl.svg?branch=master)](https://travis-ci.org/chef/omnibus-ctl)
4
-
5
- omnibus-ctl provides service control and configuration for omnibus packages.
6
-
7
- Not much to see here yet.
8
-
9
- ### Run the Tests!
10
-
11
- There are tests in this repo that should be run before merging to master in the `spec` directory.
12
-
13
- To run them, first install rspec via bundler:
14
-
15
- ```
16
- bundle install --binstubs
17
- ```
18
-
19
- Then run the tests:
20
-
21
- ```
22
- ./bin/rspec spec/
23
- ```
24
-
25
- ### Framework API
26
-
27
- There are two main functions you will use in your `*-ctl` project to add commands.
28
-
29
- #### add_command_under_category(string, string, string, int, ruby_block)
30
-
31
- This method will add a new command to your ctl under a category, useful for grouping similar commands together logically in help output.
32
-
33
- Input arguments:
34
-
35
- 1. Name of the command.
36
- 2. Category of the command. It should be string consisting of only characters and "-". If the category does not exist, it will be added. Default categories are "general" and "service-management" (if the latter is enabled).
37
- 3. Description. This will be outputted below the command name when the help command is run.
38
- 4. Arity. TODO: Due to current bug, this must be 2, I believe. We should fix this.
39
- 5. Ruby block. Ruby code to be executed when your command is run (arguments to that command will be passed into the block).
40
-
41
- #### add_command(string, string, int, ruby_block)
42
-
43
- This method will add a new command to your ctl without a category. It will be displayed above all categories when the help command is called.
44
-
45
- Input arguments are the same as `add_command_under_category` except 2 doesn't exist.
46
-
47
- #### Sample Output
48
-
49
- ```
50
- # sample-ctl help
51
- /opt/opscode/embedded/bin/sample-ctl: command (subcommand)
52
- command-without-category
53
- Here is an insightful description for the above command, added via add_command.
54
- another-command-without-category
55
- Yet another description.
56
- Some Category Of Commands:
57
- command-with-category
58
- Exciting description of command added via add_command_under_category.
59
- better-command-with-category
60
- You get the idea.
61
- Another Category:
62
- command-with-better-category
63
- I'm not just going to copy-pasta above example descriptions.
64
- better-command-with-better-category
65
- I'm running out of ideas.
66
- ```
67
-
68
- If you only use `add_command_under_category` to add your custom commands, everything will be outputted under a category.
69
-
70
- ### Licensing
71
-
72
- See the LICENSE file for details.
73
-
74
- Copyright: Copyright (c) 2012 Opscode, Inc.
75
- License: Apache License, Version 2.0
76
-
77
- Licensed under the Apache License, Version 2.0 (the "License");
78
- you may not use this file except in compliance with the License.
79
- You may obtain a copy of the License at
80
-
81
- http://www.apache.org/licenses/LICENSE-2.0
82
-
83
- Unless required by applicable law or agreed to in writing, software
84
- distributed under the License is distributed on an "AS IS" BASIS,
85
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
86
- See the License for the specific language governing permissions and
87
- limitations under the License.