Class: Todoplicator

Inherits:
Object
  • Object
show all
Defined in:
lib/todoplicator.rb,
lib/todoplicator/find_adapter.rb,
lib/todoplicator/git_hub_adapter.rb,
lib/todoplicator/git_lab_adapter.rb,
lib/todoplicator/adapter_registry.rb

Defined Under Namespace

Classes: AdapterRegistry, FindAdapter, GitHubAdapter, GitLabAdapter, UnknownAdapter

Instance Method Summary collapse

Constructor Details

#initialize(source, destination) ⇒ Todoplicator

Returns a new instance of Todoplicator.



9
10
11
12
# File 'lib/todoplicator.rb', line 9

def initialize(source, destination)
  @source = FindAdapter.call(source)
  @destination = FindAdapter.call(destination)
end

Instance Method Details

#copyObject



14
15
16
# File 'lib/todoplicator.rb', line 14

def copy
  issues_to_copy.map { |i| create_issue(i) }
end