Class: MigrateToGithub

Inherits:
Object
  • Object
show all
Defined in:
lib/renuo/cli/app/migrate_to_github.rb

Instance Method Summary collapse

Constructor Details

#initialize(project_name) ⇒ MigrateToGithub

Returns a new instance of MigrateToGithub.



2
3
4
5
# File 'lib/renuo/cli/app/migrate_to_github.rb', line 2

def initialize(project_name)
  @project_name = project_name
  @pwd = `pwd`.strip
end

Instance Method Details

#run ⇒ Object



7
8
9
10
11
12
# File 'lib/renuo/cli/app/migrate_to_github.rb', line 7

def run
  return stop unless check_requirements
  return stop unless check_pwd

  run_tasks
end