lib/bowtie_start.rb in bowtie-start-0.0.3 vs lib/bowtie_start.rb in bowtie-start-0.0.4

- old
+ new

@@ -1,16 +1,21 @@ #!/usr/bin/env ruby require 'rubygems' +require 'yaml' require 'commander' module BowtieStart class Runner include Commander::Methods # include whatever modules you need + def initialize + @path = File.dirname(File.expand_path(__FILE__)) + end def run + random_quote = YAML.load(File.open(File.join(@path, 'quotes.yaml')))["quotes"].sample program :name, 'bowtie_starter' program :version, '0.0.1' program :description, ' ===================== @@ -25,14 +30,10 @@ | | ===================== Bowtie Starter ----------- - - Ship, ya hooligan. - -This gem installs all of our starter kits. - ' +' + random_quote["quote"].to_s default_command :help command :install_dependencies do |c| c.syntax = 'bts install_dependencies' c.summary = 'Installs hugo, hexo.'