Class: Rosette::Client::Commands::StatusCommandArgs

Inherits:
Struct
  • Object
show all
Defined in:
lib/rosette/client/commands/status_command.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#refObject

Returns the value of attribute ref

Returns:

  • (Object)

    the current value of ref



9
10
11
# File 'lib/rosette/client/commands/status_command.rb', line 9

def ref
  @ref
end

Class Method Details

.from_argv(argv, repo) ⇒ Object



10
11
12
# File 'lib/rosette/client/commands/status_command.rb', line 10

def self.from_argv(argv, repo)
  new(repo.rev_parse(argv[0] || repo.get_head))
end