Sha256: da77024161a860e7b9c569787939290e13dd1a044836a13f2980775ebf601db9
Contents?: true
Size: 1.17 KB
Versions: 1
Compression:
Stored size: 1.17 KB
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.tap do |run| run.results end 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' option :vagrant, :type => :boolean, :default => false def install require 'rocket_fuel/install' run = precheck if run.ok? RocketFuel::Install::Run.new(options).run end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rocket_fuel-0.1.0 | lib/rocket_fuel/command_line_interface.rb |