ohai 7.0.4 → 7.2.0.alpha.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,98 +0,0 @@
1
- = ohai
2
-
3
- = DESCRIPTION:
4
-
5
- Ohai detects data about your operating system. It can be used standalone, but it's primary purpose is to provide node data to Chef.
6
-
7
- Ohai will print out a JSON data blob for all the known data about your system. When used with Chef, that data is reported back via node attributes.
8
-
9
- Opscode distributes ohai as a RubyGem. This README is for developers who want to modify the Ohai source code. For users who want to write plugins for Ohai, see the wiki:
10
-
11
- * http://wiki.opscode.com/display/chef/Ohai
12
-
13
- = DEVELOPMENT:
14
-
15
- Before working on the code, if you plan to contribute your changes, you need to read the Opscode Contributing document.
16
-
17
- * http://wiki.opscode.com/display/chef/How+to+Contribute
18
-
19
- You will also need to set up the repository with the appropriate branches. We document the process on the Chef Wiki.
20
-
21
- * http://wiki.opscode.com/display/chef/Working+with+git
22
-
23
- (Substitude 'ohai' for 'chef')
24
-
25
- Once your repository is set up, you can start working on the code. We do use BDD/TDD with RSpec, and soon Cucumber for integration/feature testing, so you'll need to get those installed.
26
-
27
- = ENVIRONMENT:
28
-
29
- In order to have a dev environment where you can work on Ohai, you'll need to install a few additional gems after setting up the Git repository.
30
-
31
- Install the following RubyGems.
32
-
33
- * rake
34
- * rspec
35
- * extlib
36
- * systemu
37
- * json
38
-
39
- gem install rake rspec extlib systemu json
40
-
41
- == Rake Tasks
42
-
43
- Ohai has some Rake tasks for doing various things.
44
-
45
- rake -T
46
- rake clobber_package # Remove package products
47
- rake gem # Build the gem file ohai-$VERSION.gem
48
- rake install # install the gem locally
49
- rake make_spec # create a gemspec file
50
- rake package # Build all the packages
51
- rake repackage # Force a rebuild of the package files
52
- rake spec # Run specs
53
-
54
- ($VERSION is the current version, from the GemSpec in Rakefile)
55
-
56
- == Spec Testing:
57
-
58
- We use RSpec for unit/spec tests.
59
-
60
- rake spec
61
-
62
- Because ohai gathers system information, and we don't know what kind of system we might be running on (yet), we're moving away from specs for integration testing and to cucumber.
63
-
64
- = LINKS:
65
-
66
- Source:
67
-
68
- * http://github.com/opscode/ohai/tree/master
69
-
70
- Tickets/Issues:
71
-
72
- * http://tickets.opscode.com/
73
-
74
- (Use the OHAI project)
75
-
76
- Documentation:
77
-
78
- * http://wiki.opscode.com/display/chef/Ohai
79
-
80
- = LICENSE:
81
-
82
- Ohai - system information application
83
-
84
- Author:: Adam Jacob (<adam@opscode.com>)
85
- Copyright:: Copyright (c) 2008 Opscode, Inc.
86
- License:: Apache License, Version 2.0
87
-
88
- Licensed under the Apache License, Version 2.0 (the "License");
89
- you may not use this file except in compliance with the License.
90
- You may obtain a copy of the License at
91
-
92
- http://www.apache.org/licenses/LICENSE-2.0
93
-
94
- Unless required by applicable law or agreed to in writing, software
95
- distributed under the License is distributed on an "AS IS" BASIS,
96
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
97
- See the License for the specific language governing permissions and
98
- limitations under the License.