lib/tape.rb in taperole-1.2.7 vs lib/tape.rb in taperole-1.2.8

- old
+ new

@@ -39,9 +39,17 @@ def actions self.class.actions end + def fe_app? + !Dir["#{local_dir}/gulpfile.*"].empty? + end + + def rails_app? + !Dir["#{local_dir}/config.ru"].empty? + end + def execute_action(action) action = action.to_sym unless actions.include?(action) raise InvalidAction, "#{action} is not a valid action!" end