ansible-helper 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7e307044c3471a7018d6da87c9a2b5209a11755e
4
+ data.tar.gz: 926411841f8a71c3c434a7a664d0c224f3263839
5
+ SHA512:
6
+ metadata.gz: 98784062ef3cc05dbc9b3b265292b7fb41c53c31d45981a2adc048443acbdde17cdb0dcc79cf617c127a802353b5aa8cd8fde187f670baf30349d1909b7fa292
7
+ data.tar.gz: 5eea7d43134c8d156925251989a270537efdded257fe4df69d31fd200e670184caaa1cad8e47831adefe90cade17b20a652934b61bcec4fdcf39d92553d2b5c1
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Mathieu Martin
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,28 @@
1
+ # Ansible Helper
2
+
3
+ The Ansible Helper is a small command-line tool to help automate some
4
+ repetitive tasks when using Ansible.
5
+
6
+ **Warning**: This gem is not recommended for use by anyone just yet.
7
+
8
+ ## Installation
9
+
10
+ With a recent Ruby install (1.9.3+):
11
+
12
+ gem install ansible-helper
13
+
14
+ ## Usage
15
+
16
+ Do not use.
17
+
18
+ Or if you insist:
19
+
20
+ ah help
21
+
22
+ ## Contributing
23
+
24
+ 1. Fork it
25
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
26
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
27
+ 4. Push to the branch (`git push origin my-new-feature`)
28
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,25 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'ansible-helper/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "ansible-helper"
8
+ spec.version = AnsibleHelper::VERSION
9
+ spec.authors = ["Mathieu Martin"]
10
+ spec.email = ["webmat@gmail.com"]
11
+ spec.description = %q{A small command line helper that helps automate repetitive
12
+ tasks when using Ansible.}
13
+ spec.summary = spec.description
14
+ spec.homepage = "https://github.com/webmat/ansible-helper"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files`.split($/)
18
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_dependency "thor"
23
+ spec.add_development_dependency "bundler", "~> 1.3"
24
+ spec.add_development_dependency "rake"
25
+ end
data/bin/ah ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # add lib/ to the path
4
+ $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
5
+
6
+ require "ansible-helper/cli"
7
+ AnsibleHelper::CLI.start(ARGV)
@@ -0,0 +1,18 @@
1
+ require 'ansible-helper'
2
+
3
+ class AnsibleHelper::CLI < Thor
4
+
5
+ desc :role, "Creates a new role in the current project"
6
+ option :dirs, :aliases => '-d',
7
+ :desc => "Comma-separated list of the role's subdirectories",
8
+ :default => 'files,handlers,tasks,templates,vars'
9
+ option :gitkeep, :aliases => '-k',
10
+ :desc => "Create a .gitkeep file in each subdirectory?",
11
+ :type => :boolean, :default => false, :banner => 'BOOLEAN'
12
+ def role(name)
13
+ dir_glob = "roles/#{name}/{#{options[:dirs]}}"
14
+ `mkdir -p #{dir_glob}`
15
+ `touch #{dir_glob}/.gitkeep` if options[:gitkeep]
16
+ puts Dir["roles/#{name}/**/*"]
17
+ end
18
+ end
@@ -0,0 +1,3 @@
1
+ module AnsibleHelper
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,4 @@
1
+ require 'thor'
2
+
3
+ module AnsibleHelper
4
+ end
metadata ADDED
@@ -0,0 +1,100 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ansible-helper
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Mathieu Martin
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-10-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: thor
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '1.3'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '1.3'
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'
55
+ description: |-
56
+ A small command line helper that helps automate repetitive
57
+ tasks when using Ansible.
58
+ email:
59
+ - webmat@gmail.com
60
+ executables:
61
+ - ah
62
+ extensions: []
63
+ extra_rdoc_files: []
64
+ files:
65
+ - .gitignore
66
+ - Gemfile
67
+ - LICENSE.txt
68
+ - README.md
69
+ - Rakefile
70
+ - ansible-helper.gemspec
71
+ - bin/ah
72
+ - lib/ansible-helper.rb
73
+ - lib/ansible-helper/cli.rb
74
+ - lib/ansible-helper/version.rb
75
+ homepage: https://github.com/webmat/ansible-helper
76
+ licenses:
77
+ - MIT
78
+ metadata: {}
79
+ post_install_message:
80
+ rdoc_options: []
81
+ require_paths:
82
+ - lib
83
+ required_ruby_version: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ required_rubygems_version: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - '>='
91
+ - !ruby/object:Gem::Version
92
+ version: '0'
93
+ requirements: []
94
+ rubyforge_project:
95
+ rubygems_version: 2.0.6
96
+ signing_key:
97
+ specification_version: 4
98
+ summary: A small command line helper that helps automate repetitive tasks when using
99
+ Ansible.
100
+ test_files: []