Class: Pushnote::Cli

Inherits:
Object
  • Object
show all
Defined in:
lib/pushnote/cli.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Cli

Returns a new instance of Cli.



7
8
9
10
# File 'lib/pushnote/cli.rb', line 7

def initialize(argv)
  @note = Note.new
  parse_options
end

Instance Attribute Details

#configurationObject (readonly)

Returns the value of attribute configuration.



5
6
7
# File 'lib/pushnote/cli.rb', line 5

def configuration
  @configuration
end

#noteObject (readonly)

Returns the value of attribute note.



5
6
7
# File 'lib/pushnote/cli.rb', line 5

def note
  @note
end

Instance Method Details

#runObject



12
13
14
15
16
# File 'lib/pushnote/cli.rb', line 12

def run
  note.collect_system_info
  read_note_body
  save_note
end