vagrant-hmurca 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e1d3d8b8c0364076264a98dfb745de017382bae
4
- data.tar.gz: 820fe62cfe4b5ccbe417c61d0867ca08e3401f58
3
+ metadata.gz: ffcbc9cafcf5f5a859168d664eaad6564a70922d
4
+ data.tar.gz: 35010c0b69275b51e8b010779f3ee2f1c0a5c5ed
5
5
  SHA512:
6
- metadata.gz: 1d11604f05257f785cb599128a9a4b4f1bd0709579163ca15d997e793c62e33aaa06c7c7fc75dacecdd8f3cdf9df5ded0cd383bd3376a82a9adfff79143bebfb
7
- data.tar.gz: ea182236bd13693bcbf1d79077acfb558c9e01116c5b0913b0ee4553583206bfd46d5eab7bc157e9957cd83f1337238576a397032b4388c19e118cc747600007
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).
@@ -1,5 +1,5 @@
1
1
  module Vagrant
2
2
  module Hmurca
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
@@ -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
@@ -2,6 +2,6 @@ require File.expand_path("../helper.rb", __FILE__)
2
2
 
3
3
  class TestVersion < Minitest::Test
4
4
  def test_version_number
5
- assert_equal Vagrant::Hmurca::VERSION, "0.1.0"
5
+ assert_equal Vagrant::Hmurca::VERSION, "0.1.2"
6
6
  end
7
7
  end
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.0
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