jamie 0.1.0.alpha10 → 0.1.0.alpha11
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/lib/jamie/cli.rb +15 -0
- data/lib/jamie/version.rb +1 -1
- metadata +2 -2
data/lib/jamie/cli.rb
CHANGED
@@ -68,6 +68,9 @@ module Jamie
|
|
68
68
|
puts ">>>>> Jamie gem not loaded, omitting tasks" unless ENV['CI']
|
69
69
|
end
|
70
70
|
THOR
|
71
|
+
empty_directory "test/integration/standard" if init_test_dir?
|
72
|
+
append_to_gitignore(".jamie/")
|
73
|
+
append_to_gitignore(".jamie.local.yml")
|
71
74
|
end
|
72
75
|
|
73
76
|
private
|
@@ -182,6 +185,18 @@ module Jamie
|
|
182
185
|
IO.readlines("Thorfile").grep(%r{require 'jamie/thor_tasks'}).empty?
|
183
186
|
end
|
184
187
|
|
188
|
+
def init_test_dir?
|
189
|
+
Dir.glob("test/integration/*").select { |d| File.directory?(d) }.empty?
|
190
|
+
end
|
191
|
+
|
192
|
+
def append_to_gitignore(line)
|
193
|
+
create_file(".gitignore") unless File.exists?(".gitignore")
|
194
|
+
|
195
|
+
if IO.readlines(".gitignore").grep(%r{^#{line}}).empty?
|
196
|
+
append_to_file(".gitignore", "#{line}\n")
|
197
|
+
end
|
198
|
+
end
|
199
|
+
|
185
200
|
# A rather insane and questionable class to quickly consume a metadata.rb
|
186
201
|
# file and return the cookbook name and version attributes.
|
187
202
|
#
|
data/lib/jamie/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jamie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.alpha11
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -194,7 +194,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
194
194
|
version: '0'
|
195
195
|
segments:
|
196
196
|
- 0
|
197
|
-
hash: -
|
197
|
+
hash: -3673077121589560001
|
198
198
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
199
199
|
none: false
|
200
200
|
requirements:
|