falkorlib 0.5.2 → 0.5.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 49183f8bdfb4ca4504c1aa9aedc4907000dfdbaf
4
- data.tar.gz: b0eeb00bd381bd05d39587babb7032b0fc6769a7
3
+ metadata.gz: 2b251b68ef9aa5c75e11514017abd5b5802a822a
4
+ data.tar.gz: 1ad2b3edcee9a6291f84a9f188b95fca8a6702b3
5
5
  SHA512:
6
- metadata.gz: bda09d8ae28326f9db2458134f78da9d4f1cbbacb4b5a31cad6aeaf877f8b2c41a535c0cca1f935f44a94fae89436f691d36821c8ad731c51356b3e242faa1c4
7
- data.tar.gz: af4d25f8d054dc5e129d63293a14c8194f947ac77684189871abf40a7ee59b5e03fb4fc748bf1327b04c639a369fe21faedce0e072166b9a89c1288ae363b24c
6
+ metadata.gz: ce5d15c59e12f42237e867baf00dbf80b91a0a2c390ac070f1bfea17febc19e28c85d4dad457a2ccaac820d41a1c6878ea0caa337fc37080dd7f5226c6f59e4f
7
+ data.tar.gz: 7beca3455d326fc02c40610a524ad0a72cd6753e44fb2eace920f8574c15c42fb47b4541d52092469fc45c57c0508a0c9bfa7fbb5c78c46d6690b9f29d518a4e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- falkorlib (0.5.2)
4
+ falkorlib (0.5.3)
5
5
  artii (>= 2.1)
6
6
  awesome_print (~> 1.2)
7
7
  configatron (~> 3.2)
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  ################################################################################
3
3
  # puppet_modules.rake - Special tasks for the management of Puppet modules
4
- # Time-stamp: <Fri 2015-05-15 23:41 svarrette>
4
+ # Time-stamp: <Tue 2015-05-19 10:51 svarrette>
5
5
  #
6
6
  # Copyright (c) 2014 Sebastien Varrette <Sebastien.Varrette@uni.lu>
7
7
  # http://varrette.gforge.uni.lu
@@ -21,7 +21,7 @@ namespace :bootstrap do
21
21
  desc "Bootstrap a new Puppet module"
22
22
  task :module, [:name] do |t, args|
23
23
  info "#{t.comment}"
24
- name = args.name == 'name' ? ask("Enter the module name") : args.name
24
+ name = (args.name.nil? or args.name.empty? or args.name == 'name') ? ask("Enter the module name (ex: 'ULHPC/modulename')") : args.name
25
25
  error "You need to provide a module name" unless name != ''
26
26
  error "The module name cannot contain spaces" if name =~ /\s+/
27
27
  moduledir = File.join( FalkorLib.config[:puppet][:modulesdir], name.gsub(/^\w*\//,'puppet-'))
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  ################################################################################
3
- # Time-stamp: <Ven 2014-12-12 19:01 svarrette>
3
+ # Time-stamp: <Tue 2015-05-19 17:59 svarrette>
4
4
  ################################################################################
5
5
  #
6
6
  # Default FalkorLib rake tasks
@@ -20,7 +20,20 @@ namespace :falkorlib do
20
20
  desc "Print the current configuration of FalkorLib"
21
21
  task :conf do
22
22
  puts FalkorLib.config.to_yaml
23
- end
23
+ end
24
+
25
+ ########### falkorlib:upgrade ###########
26
+ desc "Upgrade FalkorLib to the latest version using Bundle"
27
+ task :upgrade do |t|
28
+ info "#{t.comment}"
29
+ error "Unable to find the 'bundle' command" unless command?('bundle')
30
+ run %{ bundle update falkorlib }
31
+ if FalkorLib::Git.init?
32
+ gemfile_lock = File.join(FalkorLib::Git.rootdir, 'Gemfile.lock')
33
+ run %{git commit -s -m "Upgrade FalkorLib to the latest version" #{gemfile_lock} } if File.exist?(gemfile_lock)
34
+ end
35
+ end
36
+
24
37
  end # namespace falkorlib
25
38
 
26
39
 
@@ -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, 2
22
+ MAJOR, MINOR, PATCH = 0, 5, 3
23
23
 
24
24
  module_function
25
25
 
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.2
4
+ version: 0.5.3
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-15 00:00:00.000000000 Z
11
+ date: 2015-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake