class GulpRunner::Gulp

Public Class Methods

list() click to toggle source
# File lib/gulp-runner/gulp.rb, line 3
          def self.list
`#{gulp} --cwd #{cwd} --tasks`
          end
run(task_name = "default") click to toggle source
# File lib/gulp-runner/gulp.rb, line 7
def self.run(task_name = "default")
        `#{gulp} --cwd #{cwd} #{task_name}`
end

Private Class Methods

cwd() click to toggle source
# File lib/gulp-runner/gulp.rb, line 16
def self.cwd
        GulpRunner.node_modules_path
end
gulp() click to toggle source
# File lib/gulp-runner/gulp.rb, line 20
          def self.gulp
                  begin
  gulp = CommandUtils.get_command('gulp')
rescue
  $stderr.puts ["Gulp.js not found! You can install Gulp.js using Node and npm:",
  "$ npm install gulp -g",
  "For more info see http://gulpjs.com/"].join("\n")
end
          end
gulp_file_path() click to toggle source
# File lib/gulp-runner/gulp.rb, line 12
def self.gulp_file_path
        GulpRunner.gulp_file_path
end