vagrant-upp 0.0.1
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 +7 -0
- data/.gitignore +20 -0
- data/.rubocop.yml +6 -0
- data/Gemfile +14 -0
- data/LICENSE.txt +22 -0
- data/README.md +23 -0
- data/Rakefile +1 -0
- data/TODO.md +5 -0
- data/lib/vagrant-upp.rb +20 -0
- data/lib/vagrant-upp/command.rb +27 -0
- data/lib/vagrant-upp/errors.rb +13 -0
- data/lib/vagrant-upp/version.rb +32 -0
- data/vagrant-upp.gemspec +24 -0
- metadata +98 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6acb2769623b0431b1012c37833ce9ae9902095e
|
4
|
+
data.tar.gz: 2ab54c1ca8782ffeb633f338a18c16caa74d4ce6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d91803a4a2c2c9a1f15ff47c856141cb256c29aca22e0b571a5667a87bbd4d975f6515c16bc92ec596de892180c4dd33231f3f0a8965d36bc1cd065deef46632
|
7
|
+
data.tar.gz: f21ea5c9c562999d7c9372fbe7e20f555edad61bccab9b174c7dd1572786aab27e821f00544cb113d8ae5db2b987dde037ee2da14b2a0cb5b0a302a4c2baf816
|
data/.gitignore
ADDED
data/.rubocop.yml
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
# Specify your gem's dependencies in vagrant-upp.gemspec
|
4
|
+
gemspec
|
5
|
+
|
6
|
+
group 'development' do
|
7
|
+
gem 'vagrant', git: 'https://github.com/mitchellh/vagrant.git'
|
8
|
+
gem 'rubocop'
|
9
|
+
end
|
10
|
+
|
11
|
+
group :plugins do
|
12
|
+
gem 'vagrant-upp', path: '.'
|
13
|
+
gem 'sahara'
|
14
|
+
end
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Yusuke Goto
|
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,23 @@
|
|
1
|
+
# vagrant-upp
|
2
|
+
|
3
|
+
Execute vagrant up --no-provision && vagrant sandbox on
|
4
|
+
## Installation
|
5
|
+
|
6
|
+
```
|
7
|
+
$ bundle install
|
8
|
+
$ rake build
|
9
|
+
$ vagrant plugin install pkg/vagrant-upp-0.0.xx.gem
|
10
|
+
```
|
11
|
+
## Usage
|
12
|
+
|
13
|
+
```
|
14
|
+
$ vagrant upp
|
15
|
+
```
|
16
|
+
|
17
|
+
## Contributing
|
18
|
+
|
19
|
+
1. Fork it ( http://github.com/<my-github-username>/vagrant-upp/fork )
|
20
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
21
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
22
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
23
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/TODO.md
ADDED
data/lib/vagrant-upp.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'vagrant'
|
2
|
+
require 'vagrant-upp/version'
|
3
|
+
require 'vagrant-upp/errors'
|
4
|
+
require 'vagrant-upp/command'
|
5
|
+
|
6
|
+
module VagrantPlugins
|
7
|
+
module Upp
|
8
|
+
#
|
9
|
+
class Plugin < Vagrant.plugin('2')
|
10
|
+
name 'upp'
|
11
|
+
description <<-DESC
|
12
|
+
up with no provision and sandbox on
|
13
|
+
DESC
|
14
|
+
|
15
|
+
command('upp') do
|
16
|
+
Command
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module VagrantPlugins
|
2
|
+
module Upp
|
3
|
+
#
|
4
|
+
# Invoke vagrant up --no-provision && vagrant sandbox on
|
5
|
+
#
|
6
|
+
class Command < Vagrant.plugin('2', :command)
|
7
|
+
def self.synopsis
|
8
|
+
'starts with no provision and sandbox mode on'
|
9
|
+
end
|
10
|
+
|
11
|
+
def execute
|
12
|
+
unless Vagrant.has_plugin? 'sahara'
|
13
|
+
fail VagrantPlugins::Upp::SaharaNotInstallError
|
14
|
+
end
|
15
|
+
|
16
|
+
opt = OptionParser.new
|
17
|
+
argv = parse_options opt
|
18
|
+
|
19
|
+
with_target_vms(argv) do |vm|
|
20
|
+
vm.action :up, provision_enabled: false
|
21
|
+
vm.env.cli %w(sandbox on)
|
22
|
+
end
|
23
|
+
0
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module VagrantPlugins
|
2
|
+
module Upp
|
3
|
+
#
|
4
|
+
# Error class of Sahara not installed
|
5
|
+
#
|
6
|
+
class SaharaNotInstallError < Vagrant::Errors::VagrantError
|
7
|
+
error_message <<-ERR
|
8
|
+
Need to install vagrant plugin 'sahara'
|
9
|
+
$ vagrant plugin install sahara
|
10
|
+
ERR
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
#
|
2
|
+
# Copyright (c) 2014 Yusuke Goto
|
3
|
+
#
|
4
|
+
# MIT License
|
5
|
+
#
|
6
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
7
|
+
# a copy of this software and associated documentation files (the
|
8
|
+
# "Software"), to deal in the Software without restriction, including
|
9
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
10
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
11
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
12
|
+
# the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be
|
15
|
+
# included in all copies or substantial portions of the Software.
|
16
|
+
#
|
17
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
18
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
19
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
20
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
21
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
22
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
23
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
24
|
+
#
|
25
|
+
|
26
|
+
#
|
27
|
+
module VagrantPlugins
|
28
|
+
#
|
29
|
+
module Upp
|
30
|
+
VERSION = '0.0.1'
|
31
|
+
end
|
32
|
+
end
|
data/vagrant-upp.gemspec
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'vagrant-upp/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "vagrant-upp"
|
8
|
+
spec.version = VagrantPlugins::Upp::VERSION
|
9
|
+
spec.authors = ["Yusuke Goto"]
|
10
|
+
spec.email = ["u.suke.goto@gmail.com"]
|
11
|
+
spec.summary = spec.description
|
12
|
+
spec.description = %q{This Vagrant plugins call vagrant up with no provision and sandbox on}
|
13
|
+
spec.homepage = ""
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.5"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
spec.add_development_dependency "rubocop"
|
24
|
+
end
|
metadata
ADDED
@@ -0,0 +1,98 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: vagrant-upp
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Yusuke Goto
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-04-12 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.5'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.5'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubocop
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: This Vagrant plugins call vagrant up with no provision and sandbox on
|
56
|
+
email:
|
57
|
+
- u.suke.goto@gmail.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- ".gitignore"
|
63
|
+
- ".rubocop.yml"
|
64
|
+
- Gemfile
|
65
|
+
- LICENSE.txt
|
66
|
+
- README.md
|
67
|
+
- Rakefile
|
68
|
+
- TODO.md
|
69
|
+
- lib/vagrant-upp.rb
|
70
|
+
- lib/vagrant-upp/command.rb
|
71
|
+
- lib/vagrant-upp/errors.rb
|
72
|
+
- lib/vagrant-upp/version.rb
|
73
|
+
- vagrant-upp.gemspec
|
74
|
+
homepage: ''
|
75
|
+
licenses:
|
76
|
+
- MIT
|
77
|
+
metadata: {}
|
78
|
+
post_install_message:
|
79
|
+
rdoc_options: []
|
80
|
+
require_paths:
|
81
|
+
- lib
|
82
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
87
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0'
|
92
|
+
requirements: []
|
93
|
+
rubyforge_project:
|
94
|
+
rubygems_version: 2.2.2
|
95
|
+
signing_key:
|
96
|
+
specification_version: 4
|
97
|
+
summary: ''
|
98
|
+
test_files: []
|