Class: RemoteTrackerFetch

Inherits:
EacRailsUtils::Models::Tableless
  • Object
show all
Includes:
EacRailsUtils::Models::FetchErrors
Defined in:
app/models/remote_tracker_fetch.rb,
app/models/remote_tracker_fetch/provider.rb,
app/models/remote_tracker_fetch/remote_issues.rb,
app/models/remote_tracker_fetch/remote_tracker.rb

Defined Under Namespace

Modules: Provider, RemoteIssues, RemoteTracker

Instance Method Summary collapse

Instance Method Details

#default_error_columnObject



26
27
28
# File 'app/models/remote_tracker_fetch.rb', line 26

def default_error_column
  :remote_tracker_id
end

#saveObject



17
18
19
20
21
22
23
24
# File 'app/models/remote_tracker_fetch.rb', line 17

def save
  ::Issue.transaction do
    return false unless valid? # rubocop:disable Rails/TransactionExitStatement
    return false unless save_remote_issues # rubocop:disable Rails/TransactionExitStatement
    return false unless save_remote_tracker # rubocop:disable Rails/TransactionExitStatement
  end
  true
end