Sha256: 9787a4458651eafdb12d25492f74aece4aea2f1d2b302786424ed962383fc3f3
Contents?: true
Size: 810 Bytes
Versions: 4
Compression:
Stored size: 810 Bytes
Contents
require 'yaml' Dir[File.join(File.dirname(__FILE__), *%w[.. vendor * lib])].each do |path| $LOAD_PATH.unshift path end require 'mite-rb' require 'string_ext' require 'mite_ext' require 'mighty_mite/application' require 'mighty_mite/autocomplete' module MightyMite BASH_COMPLETION = "complete -C \"mite auto-complete\" mite" CONFIG_FILE = File.expand_path '~/.mite.yml' mattr_accessor :calling_script def self.load_configuration if File.exist?(CONFIG_FILE) configuration = YAML.load(File.read(CONFIG_FILE)) Mite.account = configuration[:account] Mite.key = configuration[:apikey] else raise Exception.new("Configuration file is missing.") end end def self.run(args) Application.new(args).run end class Exception < StandardError; end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
Overbryd-mighty-mite-0.1.0 | lib/mighty_mite.rb |
Overbryd-mighty-mite-0.1.1 | lib/mighty_mite.rb |
Overbryd-mighty-mite-0.1.2 | lib/mighty_mite.rb |
Overbryd-mighty-mite-0.1.3 | lib/mighty_mite.rb |