vagrant-sptsync 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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzZhOTM3ZTJlM2Q3MDA1MTdkOWM1NWMxMzhkMmQ1MmVlZWQ5ZGU2OQ==
4
+ OWM2MjkyZDRkNzM1YjE4NTkwNTY4OTIzYzdkN2U3NTc5YWRiZGQyNA==
5
5
  data.tar.gz: !binary |-
6
- OTVkYWE0MThhZjViZmFkYTc3ZDQ0MmE2MjAzNDg3NjhjNWVmY2MxNg==
6
+ ZjhjMTcyNTRiYWI0YjgzZGI3YmVkNWRiYTc3NmJmYjk5NTMyYTczNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODNiMDVmOWM1MzZmNGJkNWM3ZTk3NjlmMGM2YmI2YTQxNDUxMDg5ZmE5NzUx
10
- NGMxMDZjOTIzZGQ4ZDgyYzA4ZWM2ZmE5MmJkNTU3YmRhZTllYzZmZDAwZjUy
11
- MDJhMDIwNjQ2MmVjODNjOWU0OTFmMDJlMDM0NzM0YzE0OGY5YmY=
9
+ NjZlOTI0NTZlYzQ2MTg5ZmQwY2Y4MWMxNzU2NjYzYTJiNzk0NmU3NTkwMmZl
10
+ ODNmNmY4OTA4YzEyYjEzZGYzNDk0YzA1OWYzNzg3YTZkZjU0MDQxNDdmMDQy
11
+ Y2VmZmY5N2JiODlhMDc1NThjZGZlZDY4MzkzZWRiMWNiZDg5M2M=
12
12
  data.tar.gz: !binary |-
13
- YmU5ZWYzZjVhYmM2YmM4YWM4MDAzYmIzNzc0MzU0YjFlOWM2MjcyNDIwNDU5
14
- NmM2ZjVkOGY2NTIzYTkzZWUwZDg4NzhmY2ZkMGRmOGMzNmU4OWY0MGZjNTcx
15
- ZDE2OGI2NzVlNTRjNGFmN2NhNjY4NjMyODJiNDljZmVmZDI5ODg=
13
+ ZTVlNzA0MmMzODI4OGI3NjcyMTNiZTg1Nzk0YjQxNzZkNjBmZDk1YTgxNzUy
14
+ ODhhMGVkOGZhZjFhZTY0MTQyMmU3MjdlZjhmMjY1Nzg3MDk4MmZhNTgzYWI4
15
+ ZWM1N2NhNWRlODNhMzJhMGZmMjg3MTlhY2IyYWMzZGRjYWMyOGY=
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in vagrant-sptsync.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Sean Sehr
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # Vagrant::Sptsync
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'vagrant-sptsync'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install vagrant-sptsync
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it ( http://github.com/<my-github-username>/vagrant-sptsync/fork )
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/lib/.DS_Store ADDED
Binary file
data/lib/command.rb ADDED
@@ -0,0 +1,30 @@
1
+ # require 'optparse'
2
+
3
+ module VagrantPlugins
4
+ module SptSync
5
+ class Command < Vagrant.plugin("2", :command)
6
+ def self.synopsis
7
+ "suspends the machine"
8
+ end
9
+
10
+ def execute
11
+ # opts = OptionParser.new do |o|
12
+ # o.banner = "Usage: vagrant suspend [name]"
13
+ # end
14
+
15
+ # # Parse the options
16
+ # argv = parse_options(opts)
17
+ # return if !argv
18
+
19
+ # @logger.debug("'suspend' each target VM...")
20
+ # with_target_vms(argv) do |vm|
21
+ # vm.action(:suspend)
22
+ # end
23
+
24
+ # Success, exit status 0
25
+ puts "Hello"
26
+ 0
27
+ end
28
+ end
29
+ end
30
+ end
Binary file
@@ -0,0 +1,3 @@
1
+ module VagrantSptsync
2
+ VERSION = "0.0.2"
3
+ end
@@ -0,0 +1,50 @@
1
+ $:.unshift File.expand_path("../lib", __FILE__)
2
+ require 'vagrant-sptsync/version'
3
+
4
+ Gem::Specification.new do |spec|
5
+ spec.name = "vagrant-sptsync"
6
+ spec.version = VagrantSptsync::VERSION
7
+ spec.authors = ["Sean Sehr"]
8
+ spec.email = ["sean.sehr@smashingideas.com"]
9
+ spec.summary = "Gem to sync"
10
+ spec.description = "Gem to sync"
11
+ spec.homepage = ""
12
+ spec.license = "MIT"
13
+
14
+ # The following block of code determines the files that should be included
15
+ # in the gem. It does this by reading all the files in the directory where
16
+ # this gemspec is, and parsing out the ignored files from the gitignore.
17
+ # Note that the entire gitignore(5) syntax is not supported, specifically
18
+ # the "!" syntax, but it should mostly work correctly.
19
+ root_path = File.dirname(__FILE__)
20
+ all_files = Dir.chdir(root_path) { Dir.glob("**/{*,.*}") }
21
+ all_files.reject! { |file| [".", ".."].include?(File.basename(file)) }
22
+ gitignore_path = File.join(root_path, ".gitignore")
23
+ gitignore = File.readlines(gitignore_path)
24
+ gitignore.map! { |line| line.chomp.strip }
25
+ gitignore.reject! { |line| line.empty? || line =~ /^(#|!)/ }
26
+
27
+ unignored_files = all_files.reject do |file|
28
+ # Ignore any directories, the gemspec only cares about files
29
+ next true if File.directory?(file)
30
+
31
+ # Ignore any paths that match anything in the gitignore. We do
32
+ # two tests here:
33
+ #
34
+ # - First, test to see if the entire path matches the gitignore.
35
+ # - Second, match if the basename does, this makes it so that things
36
+ # like '.DS_Store' will match sub-directories too (same behavior
37
+ # as git).
38
+ #
39
+ gitignore.any? do |ignore|
40
+ File.fnmatch(ignore, file, File::FNM_PATHNAME) ||
41
+ File.fnmatch(ignore, File.basename(file), File::FNM_PATHNAME)
42
+ end
43
+ end
44
+
45
+ spec.files = unignored_files
46
+ spec.require_paths = ["lib"]
47
+
48
+ spec.add_development_dependency "bundler", "~> 1.5"
49
+ spec.add_development_dependency "rake"
50
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-sptsync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Sehr
@@ -45,7 +45,17 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
- - ./lib/plugin.rb
48
+ - .gitignore
49
+ - Gemfile
50
+ - LICENSE.txt
51
+ - README.md
52
+ - Rakefile
53
+ - lib/.DS_Store
54
+ - lib/command.rb
55
+ - lib/plugin.rb
56
+ - lib/vagrant-sptsync/.DS_Store
57
+ - lib/vagrant-sptsync/version.rb
58
+ - vagrant-sptsync.gemspec
49
59
  homepage: ''
50
60
  licenses:
51
61
  - MIT