kitchen-rax 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.cane +0 -0
- data/.gitignore +17 -2
- data/.ruby-version +1 -0
- data/.tailor +4 -0
- data/README.md +47 -19
- data/Rakefile +18 -0
- data/kitchen-rax.gemspec +19 -17
- data/lib/kitchen/driver/rax.rb +37 -0
- data/lib/kitchen/driver/rax_version.rb +26 -0
- data/spec/kitchen/rax_spec.rb +11 -0
- data/spec/spec_helper.rb +11 -0
- metadata +70 -20
- data/lib/kitchen/rax.rb +0 -7
- data/lib/kitchen/rax/version.rb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aca94155610a4b5e174e96c6460ec2339c948932
|
4
|
+
data.tar.gz: c5ab9d9fc2625fe90fee924244bf7ab8f5f1e93c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7ff7320bad031b00cccec7ed004be577717bd13eb92ab116d3beb2b8a41431635b509f9dc0fe3dc2675499de8d321d377e8192505d4daf3ef9f30e2b360a2be
|
7
|
+
data.tar.gz: 644db80c4beccec3a87a21a12057c1df0c526093595a961161b208237cc20a53ce109cc6fe1f63ff8161cdf6ca4226d22fbdf7c2ba6ba67dba16ccc6a04990f4
|
data/.cane
ADDED
File without changes
|
data/.gitignore
CHANGED
@@ -7,6 +7,21 @@
|
|
7
7
|
/pkg/
|
8
8
|
/spec/reports/
|
9
9
|
/tmp/
|
10
|
-
|
11
|
-
# rspec failure tracking
|
12
10
|
.rspec_status
|
11
|
+
*.gem
|
12
|
+
*.rbc
|
13
|
+
.bundle
|
14
|
+
.config
|
15
|
+
.yardoc
|
16
|
+
Gemfile.lock
|
17
|
+
InstalledFiles
|
18
|
+
_yardoc
|
19
|
+
coverage
|
20
|
+
doc/
|
21
|
+
lib/bundler/man
|
22
|
+
pkg
|
23
|
+
rdoc
|
24
|
+
spec/reports
|
25
|
+
test/tmp
|
26
|
+
test/version_tmp
|
27
|
+
tmp
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.2.6
|
data/.tailor
ADDED
data/README.md
CHANGED
@@ -1,36 +1,64 @@
|
|
1
|
-
# Kitchen::Rax
|
1
|
+
# <a name="title"></a> Kitchen::Rax
|
2
2
|
|
3
|
-
|
3
|
+
A Test Kitchen Driver for Rax.
|
4
4
|
|
5
|
-
|
5
|
+
## <a name="requirements"></a> Requirements
|
6
6
|
|
7
|
-
|
7
|
+
**TODO:** document any software or library prerequisites that are required to
|
8
|
+
use this driver. Implement the `#verify_dependencies` method in your Driver
|
9
|
+
class to enforce these requirements in code, if possible.
|
8
10
|
|
9
|
-
|
11
|
+
## <a name="installation"></a> Installation and Setup
|
10
12
|
|
11
|
-
|
12
|
-
gem 'kitchen-rax'
|
13
|
-
```
|
13
|
+
Please read the [Driver usage][driver_usage] page for more details.
|
14
14
|
|
15
|
-
|
15
|
+
## <a name="config"></a> Configuration
|
16
16
|
|
17
|
-
|
17
|
+
**TODO:** Write descriptions of all configuration options
|
18
18
|
|
19
|
-
|
19
|
+
### <a name="config-require-chef-omnibus"></a> require\_chef\_omnibus
|
20
20
|
|
21
|
-
|
21
|
+
Determines whether or not a Chef [Omnibus package][chef_omnibus_dl] will be
|
22
|
+
installed. There are several different behaviors available:
|
22
23
|
|
23
|
-
|
24
|
+
* `true` - the latest release will be installed. Subsequent converges
|
25
|
+
will skip re-installing if chef is present.
|
26
|
+
* `latest` - the latest release will be installed. Subsequent converges
|
27
|
+
will always re-install even if chef is present.
|
28
|
+
* `<VERSION_STRING>` (ex: `10.24.0`) - the desired version string will
|
29
|
+
be passed the the install.sh script. Subsequent converges will skip if
|
30
|
+
the installed version and the desired version match.
|
31
|
+
* `false` or `nil` - no chef is installed.
|
24
32
|
|
25
|
-
|
33
|
+
The default value is unset, or `nil`.
|
26
34
|
|
27
|
-
## Development
|
35
|
+
## <a name="development"></a> Development
|
28
36
|
|
29
|
-
|
37
|
+
* Source hosted at [GitHub][repo]
|
38
|
+
* Report issues/questions/feature requests on [GitHub Issues][issues]
|
30
39
|
|
31
|
-
|
40
|
+
Pull requests are very welcome! Make sure your patches are well tested.
|
41
|
+
Ideally create a topic branch for every separate change you make. For
|
42
|
+
example:
|
32
43
|
|
33
|
-
|
44
|
+
1. Fork the repo
|
45
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
46
|
+
3. Commit your changes (`git commit -am 'Added some feature'`)
|
47
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
48
|
+
5. Create new Pull Request
|
34
49
|
|
35
|
-
|
50
|
+
## <a name="authors"></a> Authors
|
36
51
|
|
52
|
+
Created and maintained by [Olivier Kouame][author] (<olivier.kouame@salesforce.com>)
|
53
|
+
|
54
|
+
## <a name="license"></a> License
|
55
|
+
|
56
|
+
Apache 2.0 (see [LICENSE][license])
|
57
|
+
|
58
|
+
|
59
|
+
[author]: https://github.com/enter-github-user
|
60
|
+
[issues]: https://github.com/enter-github-user/kitchen-rax/issues
|
61
|
+
[license]: https://github.com/enter-github-user/kitchen-rax/blob/master/LICENSE
|
62
|
+
[repo]: https://github.com/enter-github-user/kitchen-rax
|
63
|
+
[driver_usage]: http://docs.kitchen-ci.org/drivers/usage
|
64
|
+
[chef_omnibus_dl]: http://www.chef.io/chef/install/
|
data/Rakefile
CHANGED
@@ -1,6 +1,24 @@
|
|
1
|
+
require 'cane/rake_task'
|
2
|
+
require 'tailor/rake_task'
|
1
3
|
require "bundler/gem_tasks"
|
2
4
|
require "rspec/core/rake_task"
|
3
5
|
|
4
6
|
RSpec::Core::RakeTask.new(:spec)
|
5
7
|
|
6
8
|
task :default => :spec
|
9
|
+
|
10
|
+
desc "Run cane to check quality metrics"
|
11
|
+
Cane::RakeTask.new do |cane|
|
12
|
+
cane.canefile = './.cane'
|
13
|
+
end
|
14
|
+
|
15
|
+
Tailor::RakeTask.new
|
16
|
+
|
17
|
+
desc "Display LOC stats"
|
18
|
+
task :stats do
|
19
|
+
puts "\n## Production Code Stats"
|
20
|
+
sh "countloc -r lib"
|
21
|
+
end
|
22
|
+
|
23
|
+
desc "Run all quality tasks"
|
24
|
+
task :quality => [:cane, :tailor, :stats]
|
data/kitchen-rax.gemspec
CHANGED
@@ -1,26 +1,28 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
lib = File.expand_path('../lib', __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'kitchen/
|
4
|
+
require 'kitchen/driver/rax_version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name =
|
8
|
-
spec.version = Kitchen::
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
7
|
+
spec.name = 'kitchen-rax'
|
8
|
+
spec.version = Kitchen::Driver::RAX_VERSION
|
9
|
+
spec.authors = ['Olivier Kouame']
|
10
|
+
spec.email = ['olivier.kouame@salesforce.com']
|
11
|
+
spec.description = %q{A Test Kitchen Driver for Rackspace}
|
12
|
+
spec.summary = spec.description
|
13
|
+
spec.homepage = ''
|
14
|
+
spec.license = 'Apache 2.0'
|
11
15
|
|
12
|
-
|
13
|
-
spec.
|
14
|
-
spec.
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = []
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ['lib']
|
15
20
|
|
16
|
-
spec.
|
17
|
-
f.match(%r{^(test|spec|features)/})
|
18
|
-
end
|
19
|
-
spec.bindir = "exe"
|
20
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
|
-
spec.require_paths = ["lib"]
|
21
|
+
spec.add_dependency 'test-kitchen', '~> 1.0.0.alpha.3'
|
22
22
|
|
23
|
-
spec.add_development_dependency
|
24
|
-
spec.add_development_dependency
|
25
|
-
spec.add_development_dependency
|
23
|
+
spec.add_development_dependency 'bundler', '~> 1.3'
|
24
|
+
spec.add_development_dependency 'rake'
|
25
|
+
spec.add_development_dependency 'cane'
|
26
|
+
spec.add_development_dependency 'tailor'
|
27
|
+
spec.add_development_dependency 'countloc'
|
26
28
|
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
#
|
3
|
+
# Author:: Olivier Kouame (<olivier.kouame@salesforce.com>)
|
4
|
+
#
|
5
|
+
# Copyright (C) 2017, Olivier Kouame
|
6
|
+
#
|
7
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
+
# you may not use this file except in compliance with the License.
|
9
|
+
# You may obtain a copy of the License at
|
10
|
+
#
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
#
|
13
|
+
# Unless required by applicable law or agreed to in writing, software
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
+
# See the License for the specific language governing permissions and
|
17
|
+
# limitations under the License.
|
18
|
+
|
19
|
+
require 'kitchen'
|
20
|
+
|
21
|
+
module Kitchen
|
22
|
+
|
23
|
+
module Driver
|
24
|
+
|
25
|
+
# Rax driver for Kitchen.
|
26
|
+
#
|
27
|
+
# @author Olivier Kouame <olivier.kouame@salesforce.com>
|
28
|
+
class Rax < Kitchen::Driver::SSHBase
|
29
|
+
|
30
|
+
def create(state)
|
31
|
+
end
|
32
|
+
|
33
|
+
def destroy(state)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
#
|
3
|
+
# Author:: Olivier Kouame (<olivier.kouame@salesforce.com>)
|
4
|
+
#
|
5
|
+
# Copyright (C) 2017, Olivier Kouame
|
6
|
+
#
|
7
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
+
# you may not use this file except in compliance with the License.
|
9
|
+
# You may obtain a copy of the License at
|
10
|
+
#
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
#
|
13
|
+
# Unless required by applicable law or agreed to in writing, software
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
+
# See the License for the specific language governing permissions and
|
17
|
+
# limitations under the License.
|
18
|
+
|
19
|
+
module Kitchen
|
20
|
+
|
21
|
+
module Driver
|
22
|
+
|
23
|
+
# Version string for Rax Kitchen driver
|
24
|
+
RAX_VERSION = "0.2.0"
|
25
|
+
end
|
26
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
require "bundler/setup"
|
2
|
+
require "kitchen/rax"
|
3
|
+
|
4
|
+
RSpec.configure do |config|
|
5
|
+
# Enable flags like --only-failures and --next-failure
|
6
|
+
config.example_status_persistence_file_path = ".rspec_status"
|
7
|
+
|
8
|
+
config.expect_with :rspec do |c|
|
9
|
+
c.syntax = :expect
|
10
|
+
end
|
11
|
+
end
|
metadata
CHANGED
@@ -1,66 +1,111 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-rax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Olivier Kouame
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2017-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: test-kitchen
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.0.0.alpha.3
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.0.0.alpha.3
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: bundler
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
16
30
|
requirements:
|
17
31
|
- - "~>"
|
18
32
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
33
|
+
version: '1.3'
|
20
34
|
type: :development
|
21
35
|
prerelease: false
|
22
36
|
version_requirements: !ruby/object:Gem::Requirement
|
23
37
|
requirements:
|
24
38
|
- - "~>"
|
25
39
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
40
|
+
version: '1.3'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: rake
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
30
44
|
requirements:
|
31
|
-
- - "
|
45
|
+
- - ">="
|
32
46
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
47
|
+
version: '0'
|
34
48
|
type: :development
|
35
49
|
prerelease: false
|
36
50
|
version_requirements: !ruby/object:Gem::Requirement
|
37
51
|
requirements:
|
38
|
-
- - "
|
52
|
+
- - ">="
|
39
53
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
56
|
+
name: cane
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
44
58
|
requirements:
|
45
|
-
- - "
|
59
|
+
- - ">="
|
46
60
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
61
|
+
version: '0'
|
48
62
|
type: :development
|
49
63
|
prerelease: false
|
50
64
|
version_requirements: !ruby/object:Gem::Requirement
|
51
65
|
requirements:
|
52
|
-
- - "
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: tailor
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: countloc
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
53
95
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
55
|
-
description: A Test Kitchen Rackspace
|
96
|
+
version: '0'
|
97
|
+
description: A Test Kitchen Driver for Rackspace
|
56
98
|
email:
|
57
99
|
- olivier.kouame@salesforce.com
|
58
100
|
executables: []
|
59
101
|
extensions: []
|
60
102
|
extra_rdoc_files: []
|
61
103
|
files:
|
104
|
+
- ".cane"
|
62
105
|
- ".gitignore"
|
63
106
|
- ".rspec"
|
107
|
+
- ".ruby-version"
|
108
|
+
- ".tailor"
|
64
109
|
- ".travis.yml"
|
65
110
|
- Gemfile
|
66
111
|
- README.md
|
@@ -68,10 +113,13 @@ files:
|
|
68
113
|
- bin/console
|
69
114
|
- bin/setup
|
70
115
|
- kitchen-rax.gemspec
|
71
|
-
- lib/kitchen/rax.rb
|
72
|
-
- lib/kitchen/
|
73
|
-
|
74
|
-
|
116
|
+
- lib/kitchen/driver/rax.rb
|
117
|
+
- lib/kitchen/driver/rax_version.rb
|
118
|
+
- spec/kitchen/rax_spec.rb
|
119
|
+
- spec/spec_helper.rb
|
120
|
+
homepage: ''
|
121
|
+
licenses:
|
122
|
+
- Apache 2.0
|
75
123
|
metadata: {}
|
76
124
|
post_install_message:
|
77
125
|
rdoc_options: []
|
@@ -92,5 +140,7 @@ rubyforge_project:
|
|
92
140
|
rubygems_version: 2.4.5.2
|
93
141
|
signing_key:
|
94
142
|
specification_version: 4
|
95
|
-
summary: A Test Kitchen
|
96
|
-
test_files:
|
143
|
+
summary: A Test Kitchen Driver for Rackspace
|
144
|
+
test_files:
|
145
|
+
- spec/kitchen/rax_spec.rb
|
146
|
+
- spec/spec_helper.rb
|
data/lib/kitchen/rax.rb
DELETED