Class: Mumukit::Sync::Store::Github::GuideImport

Inherits:
Operation
  • Object
show all
Defined in:
lib/mumukit/sync/store/github/guide_import.rb

Instance Attribute Summary collapse

Attributes inherited from Operation

#bot

Instance Method Summary collapse

Methods inherited from Operation

#before_run_in_local_repo, #can_run?, #ensure_post_commit_hook!, #run!, #with_local_repo

Constructor Details

#initialize(options) ⇒ GuideImport

Returns a new instance of GuideImport.



5
6
7
8
# File 'lib/mumukit/sync/store/github/guide_import.rb', line 5

def initialize(options)
  super(options)
  @repo = options[:repo]
end

Instance Attribute Details

#guideObject

Returns the value of attribute guide.



3
4
5
# File 'lib/mumukit/sync/store/github/guide_import.rb', line 3

def guide
  @guide
end

#repoObject

Returns the value of attribute repo.



3
4
5
# File 'lib/mumukit/sync/store/github/guide_import.rb', line 3

def repo
  @repo
end

Instance Method Details

#run_in_local_repo(dir, local_repo) ⇒ Object



10
11
12
# File 'lib/mumukit/sync/store/github/guide_import.rb', line 10

def run_in_local_repo(dir, local_repo)
  GuideReader.new(dir, repo).read_guide!
end