omnibus-ctl 0.3.6 → 0.6.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.
metadata CHANGED
@@ -1,15 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omnibus-ctl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.6.9
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: 2022-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: chef-utils
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 16.5.54
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 16.5.54
27
+ - !ruby/object:Gem::Dependency
28
+ name: chefstyle
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 2.2.0
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 2.2.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
13
55
  - !ruby/object:Gem::Dependency
14
56
  name: rspec
15
57
  requirement: !ruby/object:Gem::Requirement
@@ -41,18 +83,19 @@ dependencies:
41
83
  description: Provides command line control for omnibus pakcages, rarely used as a
42
84
  gem
43
85
  email:
44
- - legal@opscode.com
86
+ - legal@chef.io
45
87
  executables:
46
88
  - omnibus-ctl
47
89
  extensions: []
48
90
  extra_rdoc_files: []
49
91
  files:
50
- - README.md
92
+ - LICENSE
51
93
  - bin/omnibus-ctl
52
94
  - lib/omnibus-ctl.rb
53
95
  - lib/omnibus-ctl/version.rb
54
- homepage: http://github.com/opscode/omnibus-ctl
55
- licenses: []
96
+ homepage: http://github.com/chef/omnibus-ctl
97
+ licenses:
98
+ - Apache-2.0
56
99
  metadata: {}
57
100
  post_install_message:
58
101
  rdoc_options: []
@@ -62,17 +105,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
105
  requirements:
63
106
  - - ">="
64
107
  - !ruby/object:Gem::Version
65
- version: '0'
108
+ version: '2.6'
66
109
  required_rubygems_version: !ruby/object:Gem::Requirement
67
110
  requirements:
68
111
  - - ">="
69
112
  - !ruby/object:Gem::Version
70
113
  version: '0'
71
114
  requirements: []
72
- rubyforge_project:
73
- rubygems_version: 2.2.2
115
+ rubygems_version: 3.1.4
74
116
  signing_key:
75
117
  specification_version: 4
76
118
  summary: Provides command line control for omnibus packages
77
119
  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.