Sha256: 9581402146809d33c80c6ceb11629cf22cf61283ba80c28f41ea05c931105a9c

Contents?: true

Size: 438 Bytes

Versions: 2

Compression:

Stored size: 438 Bytes

Contents

module Roro
  class CLI < Thor
        
    no_commands do
     
      def configure_for_rollon
        confirm_dependencies
        @config ||= Roro::Configuration.new(options) 
      end
      
      def yaml_from_template(file)
        File.read(File.dirname(__FILE__) + "/templates/#{file}")
      end
      
      def take_thor_actions 
        @config.thor_actions.each {|k, v| eval(k) if v.eql?('y') }  
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
roro-0.3.17 lib/roro/cli/rollon.rb
roro-0.3.16 lib/roro/cli/rollon.rb