vagrant-lfstacks 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/lib/commands/s3box.rb +9 -2
- data/lib/vagrant-lfstacks/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d9d59a14337dd9d4602e029e1ec989644c0106d
|
4
|
+
data.tar.gz: d0114e602b0b5413182cdf3ffad09b821b8732b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f0168cec1ee0016b45ccc37c136f68ef764413aed9d09096fb91ec24879642e27a632817dd072790cb0b2ffdd6b4b790c554b2b4957f5213dae4c1b146caf15
|
7
|
+
data.tar.gz: 3856a767a3a75cea4f8043bbc6e46b0699b5dc0470a5af2a4f4bfac08c9d7086ffedb06ce239641f343570a7a203fda045317b4035625df1b632793cb9424d01
|
data/README.md
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
# Vagrant::Lfstacks
|
2
2
|
|
3
|
+
A Vagrantfile.dev_example is provided as a resource for development work, but since this Vagrantfile is transient and may contain testing resource (ie broken stuff), use with caution. We will try our best to keep this inline with the main Vagrantfile checked into livefyre/vagrant repo, but DO NOT copy this one over to the main repo as it contains testing directives and includes funky filepaths.
|
4
|
+
|
3
5
|
When doing development work, please remember to set VAGRANT_INTERNAL_BUNDLERIZED=1 on shell upon evocation so that your Gemfile will work!
|
4
6
|
|
5
7
|
Example: VAGRANT_INTERNAL_BUNDLERIZED=1 bundle exec vagrant bootstrap
|
6
8
|
|
7
|
-
A Vagrantfile.dev_example is provided as a resource for development work, but since this Vagrantfile is transient and may contain testing resource (ie broken stuff), use with caution. We will try our best to keep this inline with the main Vagrantfile checked into livefyre/vagrant repo, but DO NOT copy this one over to the main repo as it contains testing directives and includes funky filepaths.
|
8
9
|
|
9
10
|
|
data/lib/commands/s3box.rb
CHANGED
@@ -36,6 +36,9 @@ class S3boxCommand < Vagrant.plugin(2, :command)
|
|
36
36
|
AWS::S3::Base.establish_connection!(aws_creds)
|
37
37
|
|
38
38
|
s3_boxes = AWS::S3::Bucket.find 'livefyre-vagrant-boxes'
|
39
|
+
|
40
|
+
s3_boxes.reject {|box| File.extname(box.key)}
|
41
|
+
# pp s3_boxes
|
39
42
|
|
40
43
|
boxes_to_check = s3_boxes.select {|box| argv.include?(File.basename(box.key, '.box'))} unless argv.empty?
|
41
44
|
boxes_to_check ||= s3_boxes
|
@@ -45,10 +48,13 @@ class S3boxCommand < Vagrant.plugin(2, :command)
|
|
45
48
|
|
46
49
|
boxes_to_check.each do |s3_box|
|
47
50
|
box_name = File.basename(s3_box.key, '.box')
|
48
|
-
local_box = @env.boxes.find(box_name, 'virtualbox')
|
51
|
+
local_box = @env.boxes.find(box_name, 'virtualbox', '~> 0')
|
52
|
+
# puts local_box.directory unless local_box.nil?
|
53
|
+
|
49
54
|
unless local_box.nil?
|
50
|
-
local_date = DateTime.parse File.mtime(local_box.directory).to_s
|
55
|
+
local_date = DateTime.parse File.mtime(local_box.directory).utc.to_s
|
51
56
|
s3_date = DateTime.parse s3_box.about['last-modified']
|
57
|
+
# puts "NK: #{s3_date} > #{local_date} #{(s3_date > local_date)}"
|
52
58
|
end
|
53
59
|
|
54
60
|
if opt_hash[:pretend]
|
@@ -56,6 +62,7 @@ class S3boxCommand < Vagrant.plugin(2, :command)
|
|
56
62
|
else
|
57
63
|
# NK stupid force will result in an error instead of skipping if I try to add an existing box that doesn't need an update
|
58
64
|
if (local_box.nil? || (s3_date > local_date))
|
65
|
+
# puts "NK: #{s3_date} > #{local_date} #{(s3_date > local_date)}"
|
59
66
|
@env.action_runner.run(Vagrant::Action.action_box_add, {
|
60
67
|
:box_name => box_name,
|
61
68
|
:box_provider => 'virtualbox',
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-lfstacks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Navid Khalili
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|