opskeleton 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/opsk +10 -0
- data/lib/opskeleton/version.rb +1 -1
- data/templates/clean.yaml +1 -0
- data/templates/hiera.yaml +9 -0
- metadata +4 -2
data/bin/opsk
CHANGED
@@ -56,6 +56,16 @@ module Opsk
|
|
56
56
|
chmod("#{path}/run.sh", 0755)
|
57
57
|
end
|
58
58
|
|
59
|
+
def create_heira
|
60
|
+
hieradata = "#{path}/hieradata/"
|
61
|
+
empty_directory(hieradata)
|
62
|
+
%w(common virtualbox physical).each do |env|
|
63
|
+
copy_file('templates/clean.yaml', "#{hieradata}/#{env}.yaml")
|
64
|
+
end
|
65
|
+
|
66
|
+
copy_file('templates/hiera.yaml', "#{path}/hiera.yaml")
|
67
|
+
end
|
68
|
+
|
59
69
|
def readme
|
60
70
|
template('templates/README.erb', "#{path}/README.md")
|
61
71
|
copy_file('templates/LICENSE-2.0.txt',"#{path}/LICENSE-2.0.txt")
|
data/lib/opskeleton/version.rb
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
---
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opskeleton
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
@@ -47,9 +47,11 @@ files:
|
|
47
47
|
- opskeleton.gemspec
|
48
48
|
- templates/LICENSE-2.0.txt
|
49
49
|
- templates/README.erb
|
50
|
+
- templates/clean.yaml
|
50
51
|
- templates/default.erb
|
51
52
|
- templates/gemfile
|
52
53
|
- templates/gitignore
|
54
|
+
- templates/hiera.yaml
|
53
55
|
- templates/puppetfile.erb
|
54
56
|
- templates/run.sh
|
55
57
|
- templates/rvmrc.erb
|