vagrant-vagga 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -2
- data/README.md +41 -17
- data/example/Vagrantfile +10 -0
- data/example/hello.py +9 -0
- data/example/requirements.txt +6 -0
- data/example/vagga.yaml +12 -0
- data/lib/vagrant-vagga/command.rb +4 -1
- data/lib/vagrant-vagga/setup_vagga.sh +3 -0
- data/lib/vagrant-vagga/version.rb +1 -1
- metadata +5 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ef48114719597d97cd52206f7a0722207f19404
|
4
|
+
data.tar.gz: e422a94443f7ccbd1522d5b544952d0df5203ccd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39d53670ec383ef2a54c2856637b50ff1dd9a6a77212c1222362ec5485f8fa078fbd7c09d594e940cebf2ffcfd26cce81bed44b77d7a6075a3dba800d4a1997b
|
7
|
+
data.tar.gz: d20830a5fbc5dd7f834da2a35ca31abfffbc4537955a33a7874563b749a7b79bfac707b40aa3a98c4331842038f73b4600e08ede15f4d9d4dd2522b829a7c7ff
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,38 +1,62 @@
|
|
1
1
|
# Vagrant::Vagga
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
Vagrant plugin that simplifies installation and usage of [Vagga](http://vagga.readthedocs.org/).
|
4
|
+
It provides:
|
5
|
+
- Automatic Vagga installation into the vagrant box (only ubuntu/trusty64 was tested, open an issue if you have troubles with other boxes)
|
6
|
+
- `vagga` command for vagrant. Instead of SSH'ing into the machine you can use vagga like `vagrant vagga <vagga arguments>`
|
6
7
|
|
7
8
|
## Installation
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
gem 'vagrant-vagga'
|
13
|
-
```
|
10
|
+
Install gem to vagrant:
|
14
11
|
|
15
|
-
|
12
|
+
$ vagrant plugin install vagrant-vagga
|
16
13
|
|
17
|
-
|
14
|
+
## Make your Vagga project support Windows or MacOS
|
18
15
|
|
19
|
-
|
16
|
+
1. Install Vagrant
|
17
|
+
2. Add Vagrantfile with content like in Usage paragraph below
|
18
|
+
3. Install vagrant-vagga plugin
|
19
|
+
4. You're awesome!
|
20
20
|
|
21
|
-
$ gem install vagrant-vagga
|
22
21
|
|
23
22
|
## Usage
|
24
23
|
|
25
|
-
|
24
|
+
Vagrantfile should contain provision line to install vagga on `vagrant up`.
|
25
|
+
Also you can add protection for users without this plugin to remind them install it.
|
26
26
|
|
27
|
-
|
27
|
+
```ruby
|
28
|
+
unless Vagrant.has_plugin?("vagrant-vagga")
|
29
|
+
abort 'vagrant-vagga plugin is not installed! Do first # vagrant plugin install vagrant-vagga'
|
30
|
+
end
|
31
|
+
|
32
|
+
Vagrant.configure("2") do |config|
|
33
|
+
config.vm.box = "ubuntu/trusty64"
|
34
|
+
config.vm.provision :vagga
|
35
|
+
end
|
36
|
+
```
|
37
|
+
|
38
|
+
Your working directory with Vagrantfile should also contain vagga.yaml, which is implied by plugin logic.
|
39
|
+
|
40
|
+
```shell
|
41
|
+
$ vagrant up
|
42
|
+
... # after it's done
|
43
|
+
$ vagrant vagga
|
44
|
+
Available commands:
|
45
|
+
run Run app
|
46
|
+
setup Setup application
|
47
|
+
test Run unit tests
|
28
48
|
|
29
|
-
|
49
|
+
$ vagrant vagga test
|
50
|
+
<...> # building images
|
51
|
+
```
|
52
|
+
|
53
|
+
## Development
|
30
54
|
|
31
|
-
|
55
|
+
http://docs.vagrantup.com/v2/plugins/development-basics.html
|
32
56
|
|
33
57
|
## Contributing
|
34
58
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
59
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/rrader/vagrant-vagga.
|
36
60
|
|
37
61
|
|
38
62
|
## License
|
data/example/Vagrantfile
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
unless Vagrant.has_plugin?("vagrant-vagga")
|
2
|
+
abort 'vagrant-vagga plugin is not installed! Do first # vagrant plugin install vagrant-vagga'
|
3
|
+
end
|
4
|
+
|
5
|
+
Vagrant.configure("2") do |config|
|
6
|
+
config.vm.box = "ubuntu/trusty64"
|
7
|
+
config.vm.provision :vagga
|
8
|
+
|
9
|
+
config.vm.network :forwarded_port, guest: 5000, host: 5000, auto_correct: false
|
10
|
+
end
|
data/example/hello.py
ADDED
data/example/vagga.yaml
ADDED
@@ -10,7 +10,10 @@ module VagrantPlugins
|
|
10
10
|
|
11
11
|
def execute
|
12
12
|
args = @argv.join(' ')
|
13
|
-
|
13
|
+
vagga_command = "vagga #{args}"
|
14
|
+
# Workaround for ERROR:vagga::wrapper: Error executing _build: Error symlinking storage: Permission denied (os error 13)
|
15
|
+
vagga_command = "sudo #{vagga_command}"
|
16
|
+
command = "cd /vagrant; #{vagga_command}"
|
14
17
|
|
15
18
|
with_target_vms(nil, single_target: true) do |vm|
|
16
19
|
@logger.info("Executing vagga command on remote machine: #{command}")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-vagga
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roman Rader
|
@@ -52,6 +52,10 @@ files:
|
|
52
52
|
- README.md
|
53
53
|
- Rakefile
|
54
54
|
- Vagrantfile
|
55
|
+
- example/Vagrantfile
|
56
|
+
- example/hello.py
|
57
|
+
- example/requirements.txt
|
58
|
+
- example/vagga.yaml
|
55
59
|
- lib/vagrant-vagga.rb
|
56
60
|
- lib/vagrant-vagga/command.rb
|
57
61
|
- lib/vagrant-vagga/config.rb
|