Class: Gemsmith::Skeletons::GitSkeleton

Inherits:
BaseSkeleton show all
Defined in:
lib/gemsmith/skeletons/git_skeleton.rb

Instance Method Summary collapse

Methods inherited from BaseSkeleton

#create, #initialize, #method_missing, #respond_to?, run

Constructor Details

This class inherits a constructor from Gemsmith::Skeletons::BaseSkeleton

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Gemsmith::Skeletons::BaseSkeleton

Instance Method Details

#create_filesObject



4
5
6
7
8
9
10
# File 'lib/gemsmith/skeletons/git_skeleton.rb', line 4

def create_files
  Dir.chdir(File.join(destination_root, gem_name)) do
    `git init`
    `git add .`
    `git commit -a -n -m "Added Gemsmith skeleton."`
  end
end