Method: SchemaDev::Gem#build

Defined in:
lib/schema_dev/gem.rb

#buildObject



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/schema_dev/gem.rb', line 37

def build
  ensure_not_in_git
  ensure_doesnt_exist
  copy_template
  self.gem_root = self.gem_root.realpath
  rename_files
  fixup_subdir if @subdir
  substitute_keys
  freshen
  git_init
  puts <<-END.strip_heredoc

     Created #{gem_name}.  Your recommended next steps are:

            $ cd #{gem_name}
            $ bundle install
            $ schema_dev bundle install
            $ schema_dev rspec
  END
end