vagrant-tagprovision 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vagrant-tagprovision/action.rb +2 -2
- data/lib/vagrant-tagprovision/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cfb9caf67c9eee524dfc5aae9c0d32aa5d05845
|
4
|
+
data.tar.gz: 1debb99d197770733e64dc8c720a7be8c7d58efa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be6fdfdb80961f68c548e92f9c1705033016af6ee5eaf8c7ae158ab3edda37c46c8c3fbc727c3432ff61ddbb25387ac6df8bdcb36ecb5b55cf4c1ebf006041e2
|
7
|
+
data.tar.gz: 18773e8fba8f71ececd565735fe14f11aade1997896156b28cbf83f9eb8c291bfbe376d155106b3be42feea999fb0b3c0de6f622573b3323bea4d47e21b678bc
|
@@ -84,9 +84,9 @@ module VagrantPlugins
|
|
84
84
|
def update_file(file, resolving_machine = nil, include_id = true)
|
85
85
|
#update the file with the current state of the vagrant config and the user provisioning
|
86
86
|
file = Pathname.new(file)
|
87
|
-
file_content_line = "
|
87
|
+
file_content_line = "#{@time.inspect}\tProvisioned\t#{@commit_hash}\t#{@current_user}"
|
88
88
|
old_file_content = file.read
|
89
|
-
new_file_content = old_file_content + "
|
89
|
+
new_file_content = old_file_content + "#{file_content_line}"
|
90
90
|
file.open('wb') { |io| io.write(new_file_content) }
|
91
91
|
old_file_content != new_file_content
|
92
92
|
end
|