class Rugular::Dependencies

Public Class Methods

exit_on_failue?() click to toggle source
# File lib/rugular/tasks/dependencies.rb, line 9
def self.exit_on_failue?; true end

Public Instance Methods

bower() click to toggle source
# File lib/rugular/tasks/dependencies.rb, line 25
    def bower
      puts <<-BOWER_MESSAGE
      ~~~~~~~~*\o/~~~~~/\*~~~~~~~
      Installing bower components
      BOWER_MESSAGE
      system('npm install -g bower')
      system('bower install')
    end
bundle() click to toggle source
# File lib/rugular/tasks/dependencies.rb, line 17
    def bundle
      puts <<-GEM_MESSAGE
       ~~~~~~~~*\o/~~~~~/\*~~~~~~~
          Installing Ruby gems
      GEM_MESSAGE
      system('bundle install')
    end
check_for_rugular_directory() click to toggle source
# File lib/rugular/tasks/dependencies.rb, line 10
def check_for_rugular_directory
  ::Rugular::AppChecker.check_for_rugular_directory(
    task_name: self.class.name,
    root_directory: destination_root
  )
end
install_protractor() click to toggle source

Protractor needs to be installed globally

# File lib/rugular/tasks/dependencies.rb, line 43
def install_protractor
  `npm install -g protractor coffee-script jasmine`
end
npm_install() click to toggle source
# File lib/rugular/tasks/dependencies.rb, line 34
    def npm_install
      puts <<-NODE_MESSAGE
      ~~~~~~~~*\o/~~~~~/\*~~~~~~~
      Installing node packages
      NODE_MESSAGE
      system('npm install')
    end