class Pod::Command::Lib::Create

def clone_template

Returns:
  • (void) -
def clone_template
  UI.section("Creating `#{@name}` Pod") do
    git!"clone '#{TEMPLATE_REPO}' #{@name}"
  end
end

def configure_template

Returns:
  • (void) -
def configure_template
  UI.section("Configuring template") do
    Dir.chdir(@name) do
      ruby! "_CONFIGURE.rb #{@name}"
    end
  end
end

def initialize(argv)

def initialize(argv)
  @name = argv.shift_argument
  super
end

def print_info

Returns:
  • (void) -
def print_info
  UI.puts "\nTo learn more about the template see `#{TEMPLATE_INFO_URL}`."
end

def run

def run
  clone_template
  configure_template
  print_info
end

def validate!

def validate!
  super
  help! "A name for the Pod is required." unless @name
  help! "The Pod name cannot contain spaces." if @name.match(/\s/)
end