metric_tools

各種指標を観察したり、データを先方に共有したりといった時によく使う便利なユーティリティをまとめました


Install

gem install metric_tools

Usage

require 'metric_tools'
include MetricTools

SpreadSheet

SpreadSheet.('[email protected]', 'fugafuga', 'A6Dkfndoh9+jdnf29df016f') #login google docs spreadsheet
SpreadSheet.change_worksheet_by_title(sheet_title) #specify worksheet

SpreadSheet[0, 1] = 'HogeHoge'

SpreadSheet.save #call "save" lastly

S3

S3.login('Access_Key', 'secret_key~~', 'bucket-name!')
S3.fetch_all('logs/retention_rate', '/User/masaori/Desktop/') #fetch all files in specified s3 directory

# You can give a condition.
S3.fetch_all('logs/retention_rate, '/User/masaori/Desktop/') {|f| f.name.include? ".rb" } #Download all ".rb" files

Version Info

  • 0.0.1 (2013/2/12 released)