falkorlib 0.5.5 → 0.5.6

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: f27a5b57c6647e771c0c6190e53ddae4d23d2b1c
4
- data.tar.gz: c0ab749ae56200126b2d27830eefbba4e5ffee04
3
+ metadata.gz: 8eba86657efa15410ce5eac1bd49205f78e958d7
4
+ data.tar.gz: 24c229e174aa8abe5c5675731b49b32fc3d4147a
5
5
  SHA512:
6
- metadata.gz: 774583ab6607a1c0309af8ee480e2bf0b2fd9173c1c56f3d99d7607c39f11d131c8ccd181dce86a7979fb5d74531f1a08197b69b3f115dadbdd01084b3513d5b
7
- data.tar.gz: aa2a4df14d8700d8a8a6f113dc8770ff7b813918e1b66ab4aa0f03dda6643c312e0235ef864f9fe49f7b8c230063913da68757bd9588e1dec1b03787f5ccd861
6
+ metadata.gz: 17f1c879e7c84f17b98db8f61040a780a438a82838d9fa1e9b24ed84b7066f0f312d94178523021bab6612208e94ce4409d717ddb54e0cb9ad6c20c3002f1a4e
7
+ data.tar.gz: 1e74c3009789243a384893f7d9410594b81e46ada84340640600474b9fad7fe7ddc9e7a34732ea95a11bdb66b28d782b8f9f95eb8c30f0546641055069717127
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- falkorlib (0.5.5)
4
+ falkorlib (0.5.6)
5
5
  artii (>= 2.1)
6
6
  awesome_print (~> 1.2)
7
7
  configatron (~> 3.2)
@@ -19,7 +19,7 @@ module FalkorLib #:nodoc:
19
19
  # MAJOR: Defines the major version
20
20
  # MINOR: Defines the minor version
21
21
  # PATCH: Defines the patch version
22
- MAJOR, MINOR, PATCH = 0, 5, 5
22
+ MAJOR, MINOR, PATCH = 0, 5, 6
23
23
 
24
24
  module_function
25
25
 
@@ -2,7 +2,7 @@
2
2
  ##########################################################################
3
3
  # vagrant_init.rb
4
4
  # @author Sebastien Varrette <Sebastien.Varrette@uni.lu>
5
- # Time-stamp: <Mon 2015-05-25 20:12 svarrette>
5
+ # Time-stamp: <Thu 2015-05-28 14:06 svarrette>
6
6
  #
7
7
  # @description
8
8
  #
@@ -28,7 +28,8 @@ moduledir=modulepath.split(':').first
28
28
 
29
29
  metadata["dependencies"].each do |dep|
30
30
  lib = dep["name"]
31
- action = File.directory?("#{moduledir}") ? 'upgrade' : 'install'
31
+ shortname = lib.gsub(/^.*[\/-]/,'')
32
+ action = File.directory?("#{moduledir}/#{shortname}") ? 'upgrade' : 'install'
32
33
  run %{ puppet module #{action} #{lib} }
33
34
  end
34
35
 
@@ -25,6 +25,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
25
25
  #local.vm.primary = true if cfg[:primary]
26
26
  local.vm.box = cfg[:box]
27
27
  local.vm.host_name = ENV['VAGRANT_HOSTNAME'] || name.to_s.downcase.gsub(/_/, '-').concat(".vagrant.com")
28
+ #config.vm.box_check_update = false
28
29
  local.vm.provision "shell", path: ".vagrant_init.rb"
29
30
  # local.vm.provision :puppet do |puppet|
30
31
  # puppet.hiera_config_path = 'data/hiera.yaml'
@@ -30,25 +30,25 @@ class <%= config[:shortname] %>::params {
30
30
  ###########################################
31
31
 
32
32
  # ensure the presence (or absence) of <%= config[:shortname] %>
33
- $ensure = $<%= config[:shortname] %>_ensure ? {
33
+ $ensure = $::<%= config[:shortname] %>_ensure ? {
34
34
  '' => 'present',
35
- default => "${<%= config[:shortname] %>_ensure}"
35
+ default => $::<%= config[:shortname] %>_ensure
36
36
  }
37
37
 
38
38
  # The Protocol used. Used by monitor and firewall class. Default is 'tcp'
39
- $protocol = $<%= config[:shortname] %>_protocol ? {
39
+ $protocol = $::<%= config[:shortname] %>_protocol ? {
40
40
  '' => 'tcp',
41
- default => "${<%= config[:shortname] %>_protocol}",
41
+ default => $::<%= config[:shortname] %>_protocol},
42
42
  }
43
43
  # The port number. Used by monitor and firewall class. The default is 22.
44
- $port = $<%= config[:shortname] %>_port ? {
44
+ $port = $::<%= config[:shortname] %>_port ? {
45
45
  '' => 22,
46
- default => "${<%= config[:shortname] %>_port}",
46
+ default => $::<%= config[:shortname] %>_port,
47
47
  }
48
48
  # example of an array variable
49
- $array_variable = $<%= config[:shortname] %>_array_variable ? {
49
+ $array_variable = $::<%= config[:shortname] %>_array_variable ? {
50
50
  '' => [],
51
- default => $<%= config[:shortname] %>_array_variable,
51
+ default => $::<%= config[:shortname] %>_array_variable,
52
52
  }
53
53
 
54
54
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: falkorlib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastien Varrette
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-27 00:00:00.000000000 Z
11
+ date: 2015-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake