module LineChange

Constants

DEFAULT_CONFIG
VERSION

Public Class Methods

config_dir() click to toggle source
# File lib/line_change.rb, line 14
def self.config_dir
  @config_dir ||= File.dirname(config_path)
end
config_path() click to toggle source
# File lib/line_change.rb, line 10
def self.config_path
  @config_path ||= ENV['LINE_CHANGE_CONFIG'] || File.expand_path(DEFAULT_CONFIG)
end
configuration() click to toggle source
# File lib/line_change.rb, line 18
def self.configuration
  @configuration ||= Configuration.new(YAML.load(open(config_path).read))
end
deploy(app_id, apk_path) click to toggle source
# File lib/line_change.rb, line 22
def self.deploy(app_id, apk_path)
  Deploy.new(app_id, apk_path).start
end
install() click to toggle source
# File lib/line_change.rb, line 26
def self.install
  if Configuration.exists?
    puts "You already have a config file in #{config_path}!"
  else
    puts "Generating a new config file: #{config_path}"
    Configuration.create_config(config_dir, config_path)
  end
end