Class: Blacksmith::Configure
- Inherits:
-
Object
- Object
- Blacksmith::Configure
- Defined in:
- lib/blacksmith/configure.rb
Instance Attribute Summary collapse
-
#build_files ⇒ Object
Returns the value of attribute build_files.
-
#compile ⇒ Object
Returns the value of attribute compile.
-
#gzip ⇒ Object
Returns the value of attribute gzip.
-
#jshint ⇒ Object
Returns the value of attribute jshint.
Instance Method Summary collapse
- #build_folder ⇒ Object
- #env ⇒ Object
- #exec_config_file ⇒ Object
-
#initialize ⇒ Configure
constructor
A new instance of Configure.
- #set(k, v) ⇒ Object
- #source_folder ⇒ Object
Constructor Details
#initialize ⇒ Configure
Returns a new instance of Configure.
5 6 7 |
# File 'lib/blacksmith/configure.rb', line 5 def initialize exec_config_file end |
Instance Attribute Details
#build_files ⇒ Object
Returns the value of attribute build_files.
3 4 5 |
# File 'lib/blacksmith/configure.rb', line 3 def build_files @build_files end |
#compile ⇒ Object
Returns the value of attribute compile.
3 4 5 |
# File 'lib/blacksmith/configure.rb', line 3 def compile @compile end |
#gzip ⇒ Object
Returns the value of attribute gzip.
3 4 5 |
# File 'lib/blacksmith/configure.rb', line 3 def gzip @gzip end |
#jshint ⇒ Object
Returns the value of attribute jshint.
3 4 5 |
# File 'lib/blacksmith/configure.rb', line 3 def jshint @jshint end |
Instance Method Details
#build_folder ⇒ Object
19 20 21 |
# File 'lib/blacksmith/configure.rb', line 19 def build_folder Blacksmith.app.root + '/build' end |
#env ⇒ Object
27 28 29 |
# File 'lib/blacksmith/configure.rb', line 27 def env :production end |
#exec_config_file ⇒ Object
14 15 16 |
# File 'lib/blacksmith/configure.rb', line 14 def exec_config_file instance_eval(File.read(File.join(Dir.pwd, 'config.rb'))) end |
#set(k, v) ⇒ Object
10 11 12 |
# File 'lib/blacksmith/configure.rb', line 10 def set(k, v) instance_variable_set(:"@#{k}", v) end |
#source_folder ⇒ Object
22 23 24 |
# File 'lib/blacksmith/configure.rb', line 22 def source_folder Blacksmith.app.root + '/source' end |