kafo 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kafo/scenario_manager.rb +3 -2
- data/lib/kafo/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 631c545585673f01f7e7887718b47ccf1b28166f
|
4
|
+
data.tar.gz: def948da2ad4fa1eda020e4d0a7e822fcfaa45b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed6861706c4aee64ac86bf1cd9af46bdec15a43375fe66738af4b941a96a84f21a405e9215719c4b23865b0dfab8a9d8edf50b72703dee46d1d69121fdbb488d
|
7
|
+
data.tar.gz: f8d316dd8859f49d4ed8407c232337aa76782f1c767c9e4697f0caca046261f4e59338ccccaade0d9df51049d6da448b0e83f904527773a5ef616b619d39c5b6
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# encoding: UTF-8
|
2
2
|
require 'kafo_wizards'
|
3
|
+
require 'pathname'
|
3
4
|
|
4
5
|
module Kafo
|
5
6
|
class ScenarioManager
|
@@ -8,7 +9,7 @@ module Kafo
|
|
8
9
|
def initialize(config, last_scenario_link_name='last_scenario.yaml')
|
9
10
|
@config_dir = File.file?(config) ? File.dirname(config) : config
|
10
11
|
@last_scenario_link = File.join(config_dir, last_scenario_link_name)
|
11
|
-
@previous_scenario =
|
12
|
+
@previous_scenario = Pathname.new(last_scenario_link).realpath.to_s if File.exists?(last_scenario_link)
|
12
13
|
end
|
13
14
|
|
14
15
|
def available_scenarios
|
@@ -67,7 +68,7 @@ module Kafo
|
|
67
68
|
end
|
68
69
|
|
69
70
|
def scenario_changed?(scenario)
|
70
|
-
scenario =
|
71
|
+
scenario = Pathname.new(scenario).realpath.to_s if File.symlink?(scenario)
|
71
72
|
!!previous_scenario && scenario != previous_scenario
|
72
73
|
end
|
73
74
|
|
data/lib/kafo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kafo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marek Hulan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -301,3 +301,4 @@ specification_version: 4
|
|
301
301
|
summary: If you write puppet modules for installing your software, you can use kafo
|
302
302
|
to create powerful installer
|
303
303
|
test_files: []
|
304
|
+
has_rdoc:
|