lib/tay/cli/helpers.rb in tay-0.0.3 vs lib/tay/cli/helpers.rb in tay-0.0.4
- old
+ new
@@ -45,8 +45,20 @@
# Return the build directory for this extension, respecting any command
# line option
def build_dir
base_dir.join(options['build-directory'] || 'build')
end
+
+ ##
+ # Detect if the user has coffee-script in their Gemfile
+ def using_coffeescript?
+ Gem.loaded_specs.keys.include?('coffee-script')
+ end
+
+ ##
+ # Detect if the user has haml in their Gemfile
+ def using_haml?
+ Gem.loaded_specs.keys.include?('haml')
+ end
end
end
end
\ No newline at end of file