biosphere 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/biosphere +5 -1
- data/lib/biosphere/suite.rb +3 -0
- data/lib/biosphere/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 404d1a6e3d9d209f64e447a2bf47a5f7b0d1084b
|
4
|
+
data.tar.gz: 1ce8345cceb2828c14d2b2ba60b60cf04aac17ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe2c1b07bb80b8654978cfd7850e649e801cc116409e997fc08279921ede18dbc3613cc8e5b426f0c6bd9ef7d8233e037b2e760a20595966e2704122a1578907
|
7
|
+
data.tar.gz: 5c6dd6ad9ca0dc2e0e75a846e1e623d108e00110d176809000130cfb3a5e8e7c0b8c5970fb19d9e8c4e3655fbdb8872e2dc43f1ce1b139fefae11159b744a990
|
data/bin/biosphere
CHANGED
@@ -13,6 +13,7 @@ class BiosphereOpts
|
|
13
13
|
options = OpenStruct.new
|
14
14
|
options.build = "build"
|
15
15
|
options.src = "./"
|
16
|
+
options.version = ::Biosphere::Version
|
16
17
|
|
17
18
|
opt_parser = OptionParser.new do |opts|
|
18
19
|
|
@@ -68,7 +69,10 @@ if options.src
|
|
68
69
|
STDERR.puts "Loading suite from current directory (#{File.expand_path(options.src)}). Use --src to change the path"
|
69
70
|
end
|
70
71
|
|
71
|
-
suite.load_all()
|
72
|
+
if suite.load_all() == 0
|
73
|
+
STDERR.puts "No files found. Are you in the right directory where your biosphere .rb files are?"
|
74
|
+
exit -1
|
75
|
+
end
|
72
76
|
end
|
73
77
|
|
74
78
|
if options.build
|
data/lib/biosphere/suite.rb
CHANGED
@@ -42,6 +42,7 @@ class Biosphere
|
|
42
42
|
@files.each do |file_name, proxy|
|
43
43
|
proxy.evaluate_resources()
|
44
44
|
end
|
45
|
+
|
45
46
|
end
|
46
47
|
|
47
48
|
def load_all()
|
@@ -56,6 +57,8 @@ class Biosphere
|
|
56
57
|
@actions[key] = value
|
57
58
|
end
|
58
59
|
end
|
60
|
+
|
61
|
+
return @files.length
|
59
62
|
end
|
60
63
|
|
61
64
|
def save_node(filename = "state.node")
|
data/lib/biosphere/version.rb
CHANGED