Class: Themigrator::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/themigrator/cli.rb

Instance Method Summary collapse

Instance Method Details

#migrateObject



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

def migrate
  migrator = Themigrator::Migrator.new(Dir.pwd)
  migrator.migrate!
end

#rolesObject



15
16
17
18
19
# File 'lib/themigrator/cli.rb', line 15

def roles
  migration = Themigrator::Migration.new(Dir.pwd)
  migration.analyze_project!
  puts migration.roles.join("\n")
end