Class: Swiftly::Generate

Inherits:
Thor
  • Object
show all
Includes:
Helpers
Defined in:
lib/swiftly/generate.rb

Instance Method Summary collapse

Methods included from Helpers

#find_and_replace, #find_and_replace_all, #fix_serialization, #fix_text, #mina, #return_cmd, #swiftly_shell, #unzip, #update_setting, #verifiy_mina_credentials, #zip

Instance Method Details

#cpt(post_type_name, post_type_filter, project_name) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/swiftly/generate.rb', line 11

def cpt(post_type_name, post_type_filter, project_name)

  settings = Swiftly::Project.settings( project_name )

  GeneratePostType.new([
    post_type_name,
    post_type_filter,
    settings[:project]
  ]).invoke_all

end