-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #191 from chef/contributing
Require Chef 12 and use Chefstyle
- Loading branch information
Showing
54 changed files
with
1,103 additions
and
1,091 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Version: | ||
|
||
[Version of the project installed] | ||
|
||
# Environment: [Details about the environment such as the Operating System, cookbook details, etc...] | ||
|
||
# Scenario: | ||
|
||
[What you are trying to achieve and you can't?] | ||
|
||
# Steps to Reproduce: | ||
|
||
[If you are filing an issue what are the things we need to do in order to repro your problem?] | ||
|
||
# Expected Result: | ||
|
||
[What are you expecting to happen as the consequence of above reproduction steps?] | ||
|
||
# Actual Result: | ||
|
||
[What actually happens after the reproduction steps?] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
source 'https://rubygems.org' | ||
source "https://rubygems.org" | ||
|
||
# Specify your gem's dependencies in knife-openstack.gemspec | ||
gemspec | ||
|
||
group :development do | ||
gem 'guard-rspec' | ||
gem 'mixlib-shellout' | ||
gem "guard-rspec" | ||
gem "mixlib-shellout" | ||
gem "rake", "~> 11.0" | ||
gem "rspec", "~> 3.0" | ||
gem "chefstyle" | ||
gem "rspec-expectations" | ||
gem "rspec-mocks" | ||
gem "rspec_junit_formatter" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,40 +9,24 @@ Please refer to the [CHANGELOG](CHANGELOG.md) for version history and known issu | |
- Documentation: <https://github.com/chef/knife-openstack/blob/master/README.md> | ||
- Source: <http://github.com/chef/knife-openstack/tree/master> | ||
- Issues: <https://github.com/chef/knife-openstack/issues> | ||
- IRC: `#chef` and `#openstack-chef` on Freenode | ||
- Slack: <http://community-slack.chef.io/> | ||
- Mailing list: <https://discourse.chef.io/> | ||
|
||
Note: Documentation needs to be updated in chef docs | ||
|
||
## Installation | ||
|
||
If you're using [ChefDK](https://downloads.chef.io/chef-dk/), simply install the Gem: | ||
|
||
```bash | ||
chef gem install knife-openstack | ||
``` | ||
## Requirements | ||
|
||
If you're using bundler, simply add Chef and Knife OpenStack to your `Gemfile`: | ||
- Chef 12.0 higher | ||
- Ruby 2.2.2 or higher | ||
|
||
```ruby | ||
gem 'chef' | ||
gem 'knife-openstack' | ||
``` | ||
|
||
If you are not using bundler, you can install the gem manually. Be sure you are running Chef 0.10.10 or higher, as earlier versions do not support plugins. | ||
|
||
```bash | ||
$ gem install chef | ||
``` | ||
## Installation | ||
|
||
This plugin is distributed as a Ruby Gem. To install it, run: | ||
Using [ChefDK](https://downloads.chef.io/chef-dk/), simply install the Gem: | ||
|
||
```bash | ||
$ gem install knife-openstack | ||
chef gem install knife-openstack | ||
``` | ||
|
||
Depending on your system's configuration, you may need to run this command with root privileges. | ||
|
||
## Configuration | ||
|
||
In order to communicate with an OpenStack API you will need to tell Knife your OpenStack Auth API endpoint, your Dashboard username and password (tenant is optional). The easiest way to accomplish this is to create these entries in your `knife.rb` file: | ||
|
@@ -176,7 +160,7 @@ Author:: Chirag Jog ([[email protected]](mailto:[email protected])) | |
|
||
Author:: JJ Asghar ([[email protected]](mailto:[email protected])) | ||
|
||
Copyright:: Copyright (c) 2011-2015 Chef Software, Inc. | ||
Copyright:: Copyright (c) 2011-2016 Chef Software, Inc. | ||
|
||
License:: Apache License, Version 2.0 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
# Author:: Kaustubh Deorukhkar (<[email protected]>) | ||
# Copyright:: Copyright (c) 2013 Chef Software, Inc. | ||
|
||
require 'bundler' | ||
require 'bundler/setup' | ||
require 'bundler/gem_tasks' | ||
require 'rubocop/rake_task' | ||
require 'rspec/core/rake_task' | ||
# Copyright:: Copyright (c) 2013-2016 Chef Software, Inc. | ||
|
||
require "bundler" | ||
require "bundler/setup" | ||
require "bundler/gem_tasks" | ||
require "chefstyle" | ||
require "rubocop/rake_task" | ||
require "rspec/core/rake_task" | ||
|
||
RuboCop::RakeTask.new | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
# -*- encoding: utf-8 -*- | ||
$LOAD_PATH.push File.expand_path('../lib', __FILE__) | ||
require 'knife-openstack/version' | ||
$LOAD_PATH.push File.expand_path("../lib", __FILE__) | ||
require "knife-openstack/version" | ||
|
||
Gem::Specification.new do |s| | ||
s.name = 'knife-openstack' | ||
s.name = "knife-openstack" | ||
s.version = Knife::OpenStack::VERSION | ||
s.version = "#{s.version}-alpha-#{ENV['TRAVIS_BUILD_NUMBER']}" if ENV['TRAVIS'] | ||
s.version = "#{s.version}-alpha-#{ENV['TRAVIS_BUILD_NUMBER']}" if ENV["TRAVIS"] | ||
s.platform = Gem::Platform::RUBY | ||
s.has_rdoc = true | ||
s.extra_rdoc_files = ['README.md', 'LICENSE'] | ||
s.authors = ['JJ Asghar'] | ||
s.email = ['[email protected]'] | ||
s.homepage = 'https://github.com/chef/knife-openstack' | ||
s.summary = 'A Chef knife plugin for OpenStack clouds.' | ||
s.description = 'A Chef knife plugin for OpenStack clouds.' | ||
s.license = 'Apache-2.0' | ||
s.extra_rdoc_files = ["README.md", "LICENSE"] | ||
s.authors = ["JJ Asghar"] | ||
s.email = ["[email protected]"] | ||
s.homepage = "https://github.com/chef/knife-openstack" | ||
s.summary = "A Chef knife plugin for OpenStack clouds." | ||
s.description = "A Chef knife plugin for OpenStack clouds." | ||
s.license = "Apache-2.0" | ||
|
||
s.files = `git ls-files`.split("\n") | ||
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") | ||
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) } | ||
s.require_paths = ['lib'] | ||
s.require_paths = ["lib"] | ||
|
||
s.add_dependency 'fog', '~> 1.23' | ||
s.add_dependency 'chef', '>= 11' | ||
s.add_dependency 'knife-cloud', '~> 1.2.0' | ||
s.required_ruby_version = ">= 2.2.2" | ||
|
||
%w(bundler rubocop rake rspec-core rspec-expectations rspec-mocks rspec_junit_formatter).each { |gem| s.add_development_dependency gem } | ||
s.add_dependency "fog", "~> 1.23" | ||
s.add_dependency "chef", ">= 12" | ||
s.add_dependency "knife-cloud", "~> 1.2.0" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.