benofsky-bolt 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bolt/base.rb +1 -4
- data/lib/bolt/build.rb +1 -10
- data/lib/bolt.rb +1 -1
- metadata +1 -1
data/lib/bolt/base.rb
CHANGED
@@ -7,16 +7,13 @@
|
|
7
7
|
#
|
8
8
|
|
9
9
|
require 'fileutils'
|
10
|
-
|
11
10
|
require 'ftools' if RUBY_VERSION.to_f <= 1.8
|
12
11
|
|
13
12
|
$BOLT_BASE = File.dirname(__FILE__) + "/../../"
|
14
13
|
|
15
14
|
module Bolt
|
16
15
|
class Base
|
17
|
-
|
18
|
-
def initialize(options)
|
19
|
-
$config = options
|
16
|
+
def initialize
|
20
17
|
STDOUT.sync = true
|
21
18
|
end
|
22
19
|
|
data/lib/bolt/build.rb
CHANGED
@@ -14,16 +14,7 @@ require 'bolt/page'
|
|
14
14
|
require 'bolt/view'
|
15
15
|
|
16
16
|
module Bolt
|
17
|
-
class Build < Base
|
18
|
-
# Performs all the nessecary steps to build a Bolt project
|
19
|
-
def initialize()
|
20
|
-
if $config.out
|
21
|
-
puts $config.out
|
22
|
-
else
|
23
|
-
$config.out = d("out")
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
17
|
+
class Build < Base
|
27
18
|
def run
|
28
19
|
remove_directory($config.out)
|
29
20
|
create_directory($config.out, :error_if_exists => false)
|
data/lib/bolt.rb
CHANGED