vagrant-hmurca 0.1.0 → 0.1.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 +4 -4
- data/lib/vagrant/hmurca/command.rb +10 -5
- data/lib/vagrant/hmurca/templates/README.md +24 -0
- data/lib/vagrant/hmurca/version.rb +1 -1
- data/test/vagrant_command_test.rb +6 -2
- data/test/version_test.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffcbc9cafcf5f5a859168d664eaad6564a70922d
|
4
|
+
data.tar.gz: 35010c0b69275b51e8b010779f3ee2f1c0a5c5ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 703f11aca607d152a023da85d5b0b76cff1ab981ec8578f4faf034ce2b8cf83ede2dc5fb89a666378dad85169de4e8fe75863fc605741417699bc7eacf2c211e
|
7
|
+
data.tar.gz: 4bc44dd21234fceec8d5b867839e748a757cbfb4f444ccba529f5eac8ecd762a68c056c27d342b98368ce192bf33270dcbdee22a6b63be602f712e289e6e049f
|
@@ -17,20 +17,25 @@ module Vagrant
|
|
17
17
|
empty_directory(project_root)
|
18
18
|
end
|
19
19
|
|
20
|
-
def create_hmurca_conf_sample
|
21
|
-
target = File.join(project_root, "hmurca.conf.sample")
|
22
|
-
template("hmurca.conf.sample.tt", target)
|
23
|
-
end
|
24
|
-
|
25
20
|
def copy_dot_gitignore
|
26
21
|
target = File.join(project_root, ".gitignore")
|
27
22
|
copy_file("dot_gitignore", target)
|
28
23
|
end
|
29
24
|
|
25
|
+
def create_hmurca_conf_sample
|
26
|
+
target = File.join(project_root, "hmurca.conf.sample")
|
27
|
+
template("hmurca.conf.sample.tt", target)
|
28
|
+
end
|
29
|
+
|
30
30
|
def copy_vagrantfile
|
31
31
|
target = File.join(project_root, "Vagrantfile")
|
32
32
|
copy_file("Vagrantfile", target)
|
33
33
|
end
|
34
|
+
|
35
|
+
def copy_readme
|
36
|
+
target = File.join(project_root, "README.md")
|
37
|
+
copy_file("README.md", target)
|
38
|
+
end
|
34
39
|
end
|
35
40
|
|
36
41
|
# Internal: Hmurca command that generates project scaffold.
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Hmurca-powered Vagrant
|
2
|
+
|
3
|
+
This project contains development formation setup based on Hmurca.
|
4
|
+
|
5
|
+
## Getting started
|
6
|
+
|
7
|
+
1. First install latest version of [Vagrant](http://vagrantup.com/downloads.html),
|
8
|
+
|
9
|
+
2. Install `vagrant-hmuca` plugin:
|
10
|
+
|
11
|
+
$ vagrant plugin install vagrant-hmurca
|
12
|
+
|
13
|
+
3. Copy `hmurca.conf.sample` to `hmurca.conf` and edit the file. You may want to
|
14
|
+
adjust node performance parameters, i.a. number of virtual CPUs or memory limits.
|
15
|
+
|
16
|
+
4. Bring your formation up:
|
17
|
+
|
18
|
+
$ vagrant up
|
19
|
+
|
20
|
+
5. Enjoy!
|
21
|
+
|
22
|
+
## More information
|
23
|
+
|
24
|
+
For more information check [Hmurca's Documentation Pages](http://docs.hmurca.com).
|
@@ -4,16 +4,18 @@ require "stringio"
|
|
4
4
|
|
5
5
|
OK_STDOUT_1 = <<END
|
6
6
|
exist
|
7
|
-
create hmurca.conf.sample
|
8
7
|
create .gitignore
|
8
|
+
create hmurca.conf.sample
|
9
9
|
create Vagrantfile
|
10
|
+
create README.md
|
10
11
|
END
|
11
12
|
|
12
13
|
OK_STDOUT_2 = <<END
|
13
14
|
create foo/bar
|
14
|
-
create foo/bar/hmurca.conf.sample
|
15
15
|
create foo/bar/.gitignore
|
16
|
+
create foo/bar/hmurca.conf.sample
|
16
17
|
create foo/bar/Vagrantfile
|
18
|
+
create foo/bar/README.md
|
17
19
|
END
|
18
20
|
|
19
21
|
class TestVagrantCommand < Minitest::Test
|
@@ -52,6 +54,7 @@ class TestVagrantCommand < Minitest::Test
|
|
52
54
|
|
53
55
|
assert_equal true, File.exists?(File.join(@root, "hmurca.conf.sample"))
|
54
56
|
assert_equal true, File.exists?(File.join(@root, "Vagrantfile"))
|
57
|
+
assert_equal true, File.exists?(File.join(@root, "README.md"))
|
55
58
|
assert_equal true, File.exists?(File.join(@root, ".gitignore"))
|
56
59
|
end
|
57
60
|
|
@@ -64,6 +67,7 @@ class TestVagrantCommand < Minitest::Test
|
|
64
67
|
|
65
68
|
assert_equal true, File.exists?(File.join(dir, "hmurca.conf.sample"))
|
66
69
|
assert_equal true, File.exists?(File.join(dir, "Vagrantfile"))
|
70
|
+
assert_equal true, File.exists?(File.join(dir, "README.md"))
|
67
71
|
assert_equal true, File.exists?(File.join(dir, ".gitignore"))
|
68
72
|
end
|
69
73
|
end
|
data/test/version_test.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-hmurca
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hmurca Team
|
@@ -101,6 +101,7 @@ files:
|
|
101
101
|
- lib/vagrant/hmurca/command.rb
|
102
102
|
- lib/vagrant/hmurca/config_parser.rb
|
103
103
|
- lib/vagrant/hmurca/errors.rb
|
104
|
+
- lib/vagrant/hmurca/templates/README.md
|
104
105
|
- lib/vagrant/hmurca/templates/Vagrantfile
|
105
106
|
- lib/vagrant/hmurca/templates/dot_gitignore
|
106
107
|
- lib/vagrant/hmurca/templates/hmurca.conf.sample.tt
|