Class: LMK::GistSender
- Inherits:
-
Object
- Object
- LMK::GistSender
- Defined in:
- lib/lmk/gist_sender.rb
Instance Method Summary collapse
Instance Method Details
#client ⇒ Object
23 24 25 |
# File 'lib/lmk/gist_sender.rb', line 23 def client Octokit::Client.new end |
#options(command) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/lmk/gist_sender.rb', line 11 def (command) { :description => command.command, :public => false, :files => { "#{command..strftime '%FT%R'}.lmk" => { :content => command.full_output } } } end |
#send(commmand) ⇒ Object
5 6 7 8 9 |
# File 'lib/lmk/gist_sender.rb', line 5 def send(commmand) result = client.create_gist (commmand) commmand.html_url = result[:html_url] commmand end |