vagrant-faster 0.0.3.pre.alpha.pre.4 → 0.1.0
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 +5 -13
- data/.gitignore +148 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/Gemfile +4 -0
- data/Vagrantfile +9 -0
- data/lib/vagrant/faster/{middleware.rb → action.rb} +9 -9
- data/lib/vagrant/faster/plugin.rb +4 -5
- data/vagrant-faster.gemspec +1 -2
- metadata +14 -12
- data/.travis.yml +0 -12
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
NjMwNjkzNjM4MDRhZWM5Mzk1MzQzMzU4ZjMzN2Q5MmIxNzE2ODEwNA==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a8adf5c759db3ec6d5f2560ceb9732f7b635ae15
|
4
|
+
data.tar.gz: 45554ba1b559b49c73028ab7af544bd5ae42aace
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
YTcxNzdiYWYzNTcwYTZiMDAzOGIzOWMwMGM4MDNlMTJhZGJmMTU0ZWRhMGUz
|
11
|
-
N2YwNWE5Y2NlNjRlOGQ5ZmFlYmI2YWMwMWM1OWI5ZmQwZmVkOTM=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
YzgyYTdmZGU5YWIyYjFjZDdlYzY4NzU0Njg1NDRhN2Q3ZmMwZmRjMmViYzNh
|
14
|
-
N2FiZDA2MTZiYThlMzdiMDUzYzRlNmVhYTBkYzk4NDk5NGZiMjY5OGI4ZGNi
|
15
|
-
ODMwMmU3NmQ1YWVkZDVmMmU4ZjkzZDU4OWE4MzRhMjBhYTNmOTI=
|
6
|
+
metadata.gz: 03528fc13889ba1f87af868a8124d88cd455c85939cdd240cf1f1a99285cc0a17f22330988b9fb80dc219b383ffbd6103571a4cf9953fe6d1224dd22358f5f6c
|
7
|
+
data.tar.gz: fc75a29cec76f9ade25baa9ecd9945c4d86514d358584c3b5805c82d3bba0422bb70c1e0fdb3a06a7f3591960aa85c4fc17d2facb18ff2fbf6fa4d02df231bf5
|
data/.gitignore
CHANGED
@@ -1,3 +1,151 @@
|
|
1
|
+
# Created by http://www.gitignore.io
|
2
|
+
|
3
|
+
### Linux ###
|
4
|
+
*~
|
5
|
+
|
6
|
+
# KDE directory preferences
|
7
|
+
.directory
|
8
|
+
|
9
|
+
|
10
|
+
### Windows ###
|
11
|
+
# Windows image file caches
|
12
|
+
Thumbs.db
|
13
|
+
ehthumbs.db
|
14
|
+
|
15
|
+
# Folder config file
|
16
|
+
Desktop.ini
|
17
|
+
|
18
|
+
# Recycle Bin used on file shares
|
19
|
+
$RECYCLE.BIN/
|
20
|
+
|
21
|
+
# Windows Installer files
|
22
|
+
*.cab
|
23
|
+
*.msi
|
24
|
+
*.msm
|
25
|
+
*.msp
|
26
|
+
|
27
|
+
|
28
|
+
### OSX ###
|
29
|
+
.DS_Store
|
30
|
+
.AppleDouble
|
31
|
+
.LSOverride
|
32
|
+
|
33
|
+
# Icon must end with two \r
|
34
|
+
Icon
|
35
|
+
|
36
|
+
|
37
|
+
# Thumbnails
|
38
|
+
._*
|
39
|
+
|
40
|
+
# Files that might appear on external disk
|
41
|
+
.Spotlight-V100
|
42
|
+
.Trashes
|
43
|
+
|
44
|
+
# Directories potentially created on remote AFP share
|
45
|
+
.AppleDB
|
46
|
+
.AppleDesktop
|
47
|
+
Network Trash Folder
|
48
|
+
Temporary Items
|
49
|
+
.apdisk
|
50
|
+
|
51
|
+
|
52
|
+
### vim ###
|
53
|
+
[._]*.s[a-w][a-z]
|
54
|
+
[._]s[a-w][a-z]
|
55
|
+
*.un~
|
56
|
+
Session.vim
|
57
|
+
.netrwhist
|
58
|
+
*~
|
59
|
+
|
60
|
+
|
61
|
+
### SublimeText ###
|
62
|
+
# workspace files are user-specific
|
63
|
+
*.sublime-workspace
|
64
|
+
|
65
|
+
# project files should be checked into the repository, unless a significant
|
66
|
+
# proportion of contributors will probably not be using SublimeText
|
67
|
+
# *.sublime-project
|
68
|
+
|
69
|
+
#sftp configuration file
|
70
|
+
sftp-config.json
|
71
|
+
|
72
|
+
|
73
|
+
### RubyMine ###
|
74
|
+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm
|
75
|
+
|
76
|
+
## Directory-based project format
|
77
|
+
.idea/
|
78
|
+
# if you remove the above rule, at least ignore user-specific stuff:
|
79
|
+
# .idea/workspace.xml
|
80
|
+
# .idea/tasks.xml
|
81
|
+
# and these sensitive or high-churn files:
|
82
|
+
# .idea/dataSources.ids
|
83
|
+
# .idea/dataSources.xml
|
84
|
+
# .idea/sqlDataSources.xml
|
85
|
+
# .idea/dynamic.xml
|
86
|
+
|
87
|
+
## File-based project format
|
88
|
+
*.ipr
|
89
|
+
*.iml
|
90
|
+
*.iws
|
91
|
+
|
92
|
+
## Additional for IntelliJ
|
93
|
+
out/
|
94
|
+
|
95
|
+
# generated by mpeltonen/sbt-idea plugin
|
96
|
+
.idea_modules/
|
97
|
+
|
98
|
+
# generated by JIRA plugin
|
99
|
+
atlassian-ide-plugin.xml
|
100
|
+
|
101
|
+
# generated by Crashlytics plugin (for Android Studio and Intellij)
|
102
|
+
com_crashlytics_export_strings.xml
|
103
|
+
|
104
|
+
|
105
|
+
### Vagrant ###
|
106
|
+
.vagrant/
|
107
|
+
|
108
|
+
|
109
|
+
### Ruby ###
|
110
|
+
*.gem
|
111
|
+
*.rbc
|
112
|
+
/.config
|
113
|
+
/coverage/
|
114
|
+
/InstalledFiles
|
115
|
+
/pkg/
|
116
|
+
/spec/reports/
|
117
|
+
/test/tmp/
|
118
|
+
/test/version_tmp/
|
119
|
+
/tmp/
|
120
|
+
|
121
|
+
## Specific to RubyMotion:
|
122
|
+
.dat*
|
123
|
+
.repl_history
|
124
|
+
build/
|
125
|
+
|
126
|
+
## Documentation cache and generated files:
|
127
|
+
/.yardoc/
|
128
|
+
/_yardoc/
|
129
|
+
/doc/
|
130
|
+
/rdoc/
|
131
|
+
|
132
|
+
## Environment normalisation:
|
133
|
+
/.bundle/
|
134
|
+
/lib/bundler/man/
|
135
|
+
|
136
|
+
# for a library or gem, you might want to ignore these files since the code is
|
137
|
+
# intended to run in multiple environments; otherwise, check them in:
|
138
|
+
# Gemfile.lock
|
139
|
+
# .ruby-version
|
140
|
+
# .ruby-gemset
|
141
|
+
|
142
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
143
|
+
.rvmrc
|
144
|
+
|
145
|
+
###
|
146
|
+
### Custom ignores
|
147
|
+
###
|
148
|
+
|
1
149
|
*.gem
|
2
150
|
*.rbc
|
3
151
|
.bundle
|
data/.ruby-gemset
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
vagrant-faster
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.1.2
|
data/Gemfile
CHANGED
data/Vagrantfile
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# -*- mode: ruby -*-
|
2
|
+
# vi: set ft=ruby :
|
3
|
+
|
4
|
+
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
|
5
|
+
VAGRANTFILE_API_VERSION = "2"
|
6
|
+
|
7
|
+
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
8
|
+
config.vm.box = "yungsang/boot2docker"
|
9
|
+
end
|
@@ -1,23 +1,23 @@
|
|
1
1
|
module Vagrant
|
2
2
|
module Faster
|
3
|
-
class
|
3
|
+
class Action
|
4
4
|
def initialize(app, env)
|
5
5
|
@app = app
|
6
|
-
@env = env
|
7
6
|
end
|
8
7
|
|
9
8
|
def call(env)
|
10
|
-
|
11
|
-
vm = env[:vm] || env[:machine]
|
9
|
+
vm = env[:vm] || env[:machine]
|
12
10
|
|
13
11
|
cpus, mem = optimal_settings
|
14
12
|
if cpus > 0 && mem > 0
|
15
|
-
|
16
|
-
vm.
|
17
|
-
vm.
|
13
|
+
env[:ui].warn "[vagrant-faster] Setting CPUs: #{cpus}, Memory: #{mem}"
|
14
|
+
vm.provider_config.customizations << ["pre-boot", ["modifyvm", :id, "--memory", mem]]
|
15
|
+
vm.provider_config.customizations << ["pre-boot", ["modifyvm", :id, "--cpus", cpus]]
|
18
16
|
else
|
19
|
-
|
17
|
+
env[:ui].warn "[vagrant-faster] was unable to detect optimal settings for your machine"
|
20
18
|
end
|
19
|
+
|
20
|
+
@app.call env
|
21
21
|
end
|
22
22
|
|
23
23
|
def optimal_settings
|
@@ -40,7 +40,7 @@ module Vagrant
|
|
40
40
|
mem = mem / 4 if mem > 2048
|
41
41
|
rescue; end
|
42
42
|
|
43
|
-
cpus, mem
|
43
|
+
[ cpus, mem ]
|
44
44
|
end
|
45
45
|
end
|
46
46
|
end
|
@@ -1,13 +1,12 @@
|
|
1
1
|
module Vagrant
|
2
2
|
module Faster
|
3
|
-
class Plugin
|
3
|
+
class Plugin < Vagrant.plugin('2')
|
4
4
|
name 'vagrant-faster'
|
5
5
|
description 'Make VMs faster by allocating more Memory/CPU based on your machine capacity'
|
6
6
|
|
7
|
-
action_hook 'faster' do |hook|
|
8
|
-
require_relative './
|
9
|
-
|
10
|
-
hook.before VagrantPlugins::ProviderVirtualBox::Action::Boot, Vagrant::Faster::Middleware
|
7
|
+
action_hook 'faster', :machine_action_up do |hook|
|
8
|
+
require_relative './action'
|
9
|
+
hook.before VagrantPlugins::ProviderVirtualBox::Action::Customize, Vagrant::Faster::Action
|
11
10
|
end
|
12
11
|
end
|
13
12
|
end
|
data/vagrant-faster.gemspec
CHANGED
@@ -4,8 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "vagrant-faster"
|
7
|
-
spec.version = "0.0
|
8
|
-
spec.version = "#{spec.version}-alpha-#{ENV['TRAVIS_BUILD_NUMBER']}" if ENV['TRAVIS']
|
7
|
+
spec.version = "0.1.0"
|
9
8
|
|
10
9
|
spec.authors = ["rdsubhas"]
|
11
10
|
spec.email = ["rdsubhas@gmail.com"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-faster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rdsubhas
|
@@ -14,28 +14,28 @@ dependencies:
|
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.6'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.6'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description: A Vagrant Plugin that makes your VirtualBox VMs faster by allocating
|
@@ -46,14 +46,16 @@ executables: []
|
|
46
46
|
extensions: []
|
47
47
|
extra_rdoc_files: []
|
48
48
|
files:
|
49
|
-
- .gitignore
|
50
|
-
- .
|
49
|
+
- ".gitignore"
|
50
|
+
- ".ruby-gemset"
|
51
|
+
- ".ruby-version"
|
51
52
|
- Gemfile
|
52
53
|
- LICENSE.txt
|
53
54
|
- README.md
|
54
55
|
- Rakefile
|
56
|
+
- Vagrantfile
|
55
57
|
- lib/vagrant/faster.rb
|
56
|
-
- lib/vagrant/faster/
|
58
|
+
- lib/vagrant/faster/action.rb
|
57
59
|
- lib/vagrant/faster/plugin.rb
|
58
60
|
- vagrant-faster.gemspec
|
59
61
|
homepage: http://github.com/rdsubhas/vagrant-faster
|
@@ -66,17 +68,17 @@ require_paths:
|
|
66
68
|
- lib
|
67
69
|
required_ruby_version: !ruby/object:Gem::Requirement
|
68
70
|
requirements:
|
69
|
-
- -
|
71
|
+
- - ">="
|
70
72
|
- !ruby/object:Gem::Version
|
71
73
|
version: '0'
|
72
74
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
75
|
requirements:
|
74
|
-
- -
|
76
|
+
- - ">="
|
75
77
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
78
|
+
version: '0'
|
77
79
|
requirements: []
|
78
80
|
rubyforge_project:
|
79
|
-
rubygems_version: 2.
|
81
|
+
rubygems_version: 2.2.2
|
80
82
|
signing_key:
|
81
83
|
specification_version: 4
|
82
84
|
summary: A Vagrant Plugin that makes your VirtualBox VMs faster by allocating more
|
data/.travis.yml
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
---
|
2
|
-
language: ruby
|
3
|
-
before_install:
|
4
|
-
- "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
|
5
|
-
- "bundle config build.nokogiri --use-system-libraries"
|
6
|
-
script: echo
|
7
|
-
notifications:
|
8
|
-
email: false
|
9
|
-
deploy:
|
10
|
-
provider: rubygems
|
11
|
-
api_key:
|
12
|
-
secure: "ew0cfiSZSfkvEFpudCUtMc8hRi2uUxkWi7B6PFH/CNFKoa9V/3Mr1qtWwhG6pl2jV/NkiVCWooGzk7Cnth9RGUm2fMCYi85zi53mrIBJoROwgbem9jUlSCc0Ir4J5Xs2p783sV8fNLBaY/cnGFF8UW8d7OKLNkf/dlQmnI7YeOg="
|