kitchen-rax 0.1.0.dev → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -17
- data/README.md +19 -47
- data/Rakefile +0 -18
- data/kitchen-rax.gemspec +17 -19
- data/lib/kitchen/rax/version.rb +5 -0
- data/lib/kitchen/rax.rb +7 -0
- metadata +22 -72
- data/.cane +0 -0
- data/.ruby-version +0 -1
- data/.tailor +0 -4
- data/lib/kitchen/driver/rax.rb +0 -37
- data/lib/kitchen/driver/rax_version.rb +0 -26
- data/spec/kitchen/rax_spec.rb +0 -11
- data/spec/spec_helper.rb +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 504ba421641d7316b292f88ce34feedbf790c296
|
4
|
+
data.tar.gz: f3b6573c008f5b8edd643dd93913a0a3a61f5f4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04092f5e3e61766fcb3a1f737a3787cfd589aa7b9bbd360aaf8fdc6e760eeaafe8233a9a995e75a7261c46e071404f9794bb97f15bb2afaaf765ae0aa48ccfce
|
7
|
+
data.tar.gz: b910ef0970227e6029b30dd7eda9114d146309afe24741aab61ff00c58d5beaaf54286f071359fea559d22882da0567b8af29e68f10032bb92785921be19b0ac
|
data/.gitignore
CHANGED
@@ -7,21 +7,6 @@
|
|
7
7
|
/pkg/
|
8
8
|
/spec/reports/
|
9
9
|
/tmp/
|
10
|
+
|
11
|
+
# rspec failure tracking
|
10
12
|
.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/README.md
CHANGED
@@ -1,64 +1,36 @@
|
|
1
|
-
#
|
1
|
+
# Kitchen::Rax
|
2
2
|
|
3
|
-
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/kitchen/rax`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
4
|
|
5
|
-
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
6
|
|
7
|
-
|
8
|
-
use this driver. Implement the `#verify_dependencies` method in your Driver
|
9
|
-
class to enforce these requirements in code, if possible.
|
7
|
+
## Installation
|
10
8
|
|
11
|
-
|
9
|
+
Add this line to your application's Gemfile:
|
12
10
|
|
13
|
-
|
11
|
+
```ruby
|
12
|
+
gem 'kitchen-rax'
|
13
|
+
```
|
14
14
|
|
15
|
-
|
15
|
+
And then execute:
|
16
16
|
|
17
|
-
|
17
|
+
$ bundle
|
18
18
|
|
19
|
-
|
19
|
+
Or install it yourself as:
|
20
20
|
|
21
|
-
|
22
|
-
installed. There are several different behaviors available:
|
21
|
+
$ gem install kitchen-rax
|
23
22
|
|
24
|
-
|
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.
|
23
|
+
## Usage
|
32
24
|
|
33
|
-
|
25
|
+
TODO: Write usage instructions here
|
34
26
|
|
35
|
-
##
|
27
|
+
## Development
|
36
28
|
|
37
|
-
|
38
|
-
* Report issues/questions/feature requests on [GitHub Issues][issues]
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
39
30
|
|
40
|
-
|
41
|
-
Ideally create a topic branch for every separate change you make. For
|
42
|
-
example:
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
43
32
|
|
44
|
-
|
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
|
33
|
+
## Contributing
|
49
34
|
|
50
|
-
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/kitchen-rax.
|
51
36
|
|
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,24 +1,6 @@
|
|
1
|
-
require 'cane/rake_task'
|
2
|
-
require 'tailor/rake_task'
|
3
1
|
require "bundler/gem_tasks"
|
4
2
|
require "rspec/core/rake_task"
|
5
3
|
|
6
4
|
RSpec::Core::RakeTask.new(:spec)
|
7
5
|
|
8
6
|
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,28 +1,26 @@
|
|
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/rax/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name =
|
8
|
-
spec.version = Kitchen::
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
11
|
-
spec.description = %q{A Test Kitchen Driver for Rackspace}
|
12
|
-
spec.summary = spec.description
|
13
|
-
spec.homepage = ''
|
14
|
-
spec.license = 'Apache 2.0'
|
7
|
+
spec.name = "kitchen-rax"
|
8
|
+
spec.version = Kitchen::Rax::VERSION
|
9
|
+
spec.authors = ["Olivier Kouame"]
|
10
|
+
spec.email = ["olivier.kouame@salesforce.com"]
|
15
11
|
|
16
|
-
|
17
|
-
spec.
|
18
|
-
spec.
|
19
|
-
spec.require_paths = ['lib']
|
12
|
+
spec.description = 'A Test Kitchen Rackspace driver'
|
13
|
+
spec.summary = 'A Test Kitchen Rackspace driver built on Fog'
|
14
|
+
spec.homepage = 'https://github.com/okouam/kitchen-rax'
|
20
15
|
|
21
|
-
spec.
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
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"]
|
22
22
|
|
23
|
-
spec.add_development_dependency
|
24
|
-
spec.add_development_dependency
|
25
|
-
spec.add_development_dependency
|
26
|
-
spec.add_development_dependency 'tailor'
|
27
|
-
spec.add_development_dependency 'countloc'
|
23
|
+
spec.add_development_dependency "bundler", "~> 1.14"
|
24
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
25
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
28
26
|
end
|
data/lib/kitchen/rax.rb
ADDED
metadata
CHANGED
@@ -1,111 +1,66 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-rax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Olivier Kouame
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: exe
|
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
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: bundler
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
30
16
|
requirements:
|
31
17
|
- - "~>"
|
32
18
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1.
|
19
|
+
version: '1.14'
|
34
20
|
type: :development
|
35
21
|
prerelease: false
|
36
22
|
version_requirements: !ruby/object:Gem::Requirement
|
37
23
|
requirements:
|
38
24
|
- - "~>"
|
39
25
|
- !ruby/object:Gem::Version
|
40
|
-
version: '1.
|
26
|
+
version: '1.14'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: rake
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
44
30
|
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'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: cane
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
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
|
-
- - ">="
|
31
|
+
- - "~>"
|
74
32
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
33
|
+
version: '10.0'
|
76
34
|
type: :development
|
77
35
|
prerelease: false
|
78
36
|
version_requirements: !ruby/object:Gem::Requirement
|
79
37
|
requirements:
|
80
|
-
- - "
|
38
|
+
- - "~>"
|
81
39
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
40
|
+
version: '10.0'
|
83
41
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
42
|
+
name: rspec
|
85
43
|
requirement: !ruby/object:Gem::Requirement
|
86
44
|
requirements:
|
87
|
-
- - "
|
45
|
+
- - "~>"
|
88
46
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
47
|
+
version: '3.0'
|
90
48
|
type: :development
|
91
49
|
prerelease: false
|
92
50
|
version_requirements: !ruby/object:Gem::Requirement
|
93
51
|
requirements:
|
94
|
-
- - "
|
52
|
+
- - "~>"
|
95
53
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
description: A Test Kitchen
|
54
|
+
version: '3.0'
|
55
|
+
description: A Test Kitchen Rackspace driver
|
98
56
|
email:
|
99
57
|
- olivier.kouame@salesforce.com
|
100
58
|
executables: []
|
101
59
|
extensions: []
|
102
60
|
extra_rdoc_files: []
|
103
61
|
files:
|
104
|
-
- ".cane"
|
105
62
|
- ".gitignore"
|
106
63
|
- ".rspec"
|
107
|
-
- ".ruby-version"
|
108
|
-
- ".tailor"
|
109
64
|
- ".travis.yml"
|
110
65
|
- Gemfile
|
111
66
|
- README.md
|
@@ -113,13 +68,10 @@ files:
|
|
113
68
|
- bin/console
|
114
69
|
- bin/setup
|
115
70
|
- kitchen-rax.gemspec
|
116
|
-
- lib/kitchen/
|
117
|
-
- lib/kitchen/
|
118
|
-
|
119
|
-
|
120
|
-
homepage: ''
|
121
|
-
licenses:
|
122
|
-
- Apache 2.0
|
71
|
+
- lib/kitchen/rax.rb
|
72
|
+
- lib/kitchen/rax/version.rb
|
73
|
+
homepage: https://github.com/okouam/kitchen-rax
|
74
|
+
licenses: []
|
123
75
|
metadata: {}
|
124
76
|
post_install_message:
|
125
77
|
rdoc_options: []
|
@@ -132,15 +84,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
132
84
|
version: '0'
|
133
85
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
134
86
|
requirements:
|
135
|
-
- - "
|
87
|
+
- - ">="
|
136
88
|
- !ruby/object:Gem::Version
|
137
|
-
version:
|
89
|
+
version: '0'
|
138
90
|
requirements: []
|
139
91
|
rubyforge_project:
|
140
92
|
rubygems_version: 2.4.5.2
|
141
93
|
signing_key:
|
142
94
|
specification_version: 4
|
143
|
-
summary: A Test Kitchen
|
144
|
-
test_files:
|
145
|
-
- spec/kitchen/rax_spec.rb
|
146
|
-
- spec/spec_helper.rb
|
95
|
+
summary: A Test Kitchen Rackspace driver built on Fog
|
96
|
+
test_files: []
|
data/.cane
DELETED
File without changes
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.2.6
|
data/.tailor
DELETED
data/lib/kitchen/driver/rax.rb
DELETED
@@ -1,37 +0,0 @@
|
|
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
|
@@ -1,26 +0,0 @@
|
|
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.1.0.dev"
|
25
|
-
end
|
26
|
-
end
|
data/spec/kitchen/rax_spec.rb
DELETED
data/spec/spec_helper.rb
DELETED
@@ -1,11 +0,0 @@
|
|
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
|