Sha256: 8b87335ae620f6af870c6b79241a95ce364f1383fcf32b3ccbdc1cce1ab5f7c0
Contents?: true
Size: 973 Bytes
Versions: 2
Compression:
Stored size: 973 Bytes
Contents
module RocketFuel class CommandLineInterface < Thor package_name 'rocket_fuel' desc 'precheck', 'check for requirements prior to installation' def precheck require 'rocket_fuel/precheck' say '***Rocket Fuel: Checking prerequisites***', :blue say '' RocketFuel::Precheck::Run.new.results end desc 'fix', 'fix problems that can cause issues with running rocket fuel' def fix(fix) require 'rocket_fuel/precheck' require 'rocket_fuel/fix' if fix_class = RocketFuel::Precheck.fixes[fix.to_sym] the_fix = fix_class.new say(the_fix.title) say('Fixing...') the_fix.run say('') if the_fix.check if the_fix.check.ok? say('Fix successful.', :green) else say('Fix failed.', :red) end end end end desc 'install [package]', 'install rocket fuel packages' def install end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rocket_fuel-0.0.2 | lib/rocket_fuel/command_line_interface.rb |
rocket_fuel-0.0.1 | lib/rocket_fuel/command_line_interface.rb |