Top Level Namespace

Defined Under Namespace

Modules: BylineEngine

Constant Summary collapse

CONFIG_FILE =
"#{ENV['HOME']}/.byline_rc"

Instance Method Summary collapse

Instance Method Details

#connectObject



16
17
18
19
20
21
22
23
24
25
# File 'bin/byline', line 16

def connect
  require "models/byline"

  config = YAML::load(File.read(CONFIG_FILE))
  puts config.inspect
  server, id, key = config["simpledb_server"], config["simpledb_key_id"], config["simpledb_key"] 
  puts server, id, key

  @connection ||= SimpleRecord.establish_connection(id, key, :connection_mode => :single, :server => server)
end

#helpObject



28
29
30
31
32
# File 'bin/byline', line 28

def help
  puts "byline add 'Username <[email protected]>'"
  puts "byline find '[email protected]'"
  puts "byline destroy 'id'"
end