falkorlib 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/falkorlib/tasks/puppet_modules.rake +2 -2
- data/lib/falkorlib/tasks.rb +15 -2
- data/lib/falkorlib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b251b68ef9aa5c75e11514017abd5b5802a822a
|
4
|
+
data.tar.gz: 1ad2b3edcee9a6291f84a9f188b95fca8a6702b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce5d15c59e12f42237e867baf00dbf80b91a0a2c390ac070f1bfea17febc19e28c85d4dad457a2ccaac820d41a1c6878ea0caa337fc37080dd7f5226c6f59e4f
|
7
|
+
data.tar.gz: 7beca3455d326fc02c40610a524ad0a72cd6753e44fb2eace920f8574c15c42fb47b4541d52092469fc45c57c0508a0c9bfa7fbb5c78c46d6690b9f29d518a4e
|
data/Gemfile.lock
CHANGED
@@ -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: <
|
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-'))
|
data/lib/falkorlib/tasks.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
################################################################################
|
3
|
-
# Time-stamp: <
|
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
|
|
data/lib/falkorlib/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|