Class: Avm::Git::RevisionTest

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/git/revision_test.rb

Instance Method Summary collapse

Instance Method Details



14
15
16
17
18
19
# File 'lib/avm/git/revision_test.rb', line 14

def banner
  infov 'Revision to test', sha1
  ::EacRubyUtils::Speaker.context.on(::EacCli::Speaker.new(err_line_prefix: '  ')) do
    revision_banner
  end
end

#successful?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/avm/git/revision_test.rb', line 29

def successful?
  successful
end

#successful_labelObject



21
22
23
# File 'lib/avm/git/revision_test.rb', line 21

def successful_label
  successful?.to_s.send((successful? ? :green : :red))
end

#to_sObject



25
26
27
# File 'lib/avm/git/revision_test.rb', line 25

def to_s
  sha1
end