Class: Diggit::SourceEntry

Inherits:
EntryWithRunnables show all
Includes:
EntryWithError
Defined in:
lib/dgit/entries.rb

Instance Attribute Summary collapse

Attributes included from EntryWithError

#error

Attributes inherited from EntryWithRunnables

#canceled, #performed

Instance Method Summary collapse

Methods inherited from EntryWithRunnables

#clean, #has?

Constructor Details

#initializeSourceEntry

Returns a new instance of SourceEntry.



123
124
125
126
# File 'lib/dgit/entries.rb', line 123

def initialize
  super
  @state = :new
end

Instance Attribute Details

#stateObject

Returns the value of attribute state.



121
122
123
# File 'lib/dgit/entries.rb', line 121

def state
  @state
end

Instance Method Details

#cloned?Boolean

Returns:

  • (Boolean)


136
137
138
# File 'lib/dgit/entries.rb', line 136

def cloned?
  @state == :cloned
end

#error?Boolean

Returns:

  • (Boolean)


128
129
130
# File 'lib/dgit/entries.rb', line 128

def error?
  super || !@error.nil?
end

#new?Boolean

Returns:

  • (Boolean)


132
133
134
# File 'lib/dgit/entries.rb', line 132

def new?
  @state == :new
end