Rakefile in knife-solo-0.3.0.pre2 vs Rakefile in knife-solo-0.3.0.pre3
- old
+ new
@@ -3,10 +3,11 @@
require File.join(File.dirname(__FILE__), 'lib', 'knife-solo', 'info')
MANIFEST_IGNORES = %w[
.travis.yml
.gitignore
+ .gitmodules
Gemfile
Gemfile.lock
Manifest.txt
README.md
knife-solo.gemspec
@@ -22,13 +23,14 @@
raise "Manifest has not been updated" unless changes.empty?
end
desc 'Updates Manifest.txt with a list of files from git'
task :update do
- git_files = `git ls-files`.split("\n")
+ git_files = `git ls-files`.split("\n")
+ submodule_files = `git submodule foreach -q 'for f in $(git ls-files); do echo $path/$f; done'`.split("\n")
File.open('Manifest.txt', 'w') do |f|
- f.puts((git_files - MANIFEST_IGNORES).join("\n"))
+ f.puts((git_files + submodule_files - MANIFEST_IGNORES).join("\n"))
end
end
end
desc 'Alias to manifest:update'