Sha256: ad79248616e1923ebe898e0743dce194bd4e6a949beb413305e9be801c9095e3

Contents?: true

Size: 369 Bytes

Versions: 5

Compression:

Stored size: 369 Bytes

Contents

# frozen_string_literal: true

require 'thor'
require 'mshard'

module MShard
  class Ting < Thor::Group
    namespace :''
    argument :title, default: 'Ting!', required: false
    argument :body, required: false
    def ting
      MShard.new.set_safe(
        pushbullet: true,
        type: 'note',
        title: title,
        body: body
      )
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mshard-0.8.0 lib/mshard/ting.rb
mshard-0.7.1 lib/mshard/ting.rb
mshard-0.7.0 lib/mshard/ting.rb
mshard-0.6.1 lib/mshard/ting.rb
mshard-0.6.0 lib/mshard/ting.rb