module RocketApi module Commands module GemsDir # @param [String] name def init_gems_version!(name) dir_name = "lib/#{name}" create_dir(dir_name) file_name = "#{dir_name}/version.rb" create_single_file( file_name, plain_version_text(class_name_camel(name)) ) end # @param [String] name def init_gems_main_file!(name) file_name = "lib/#{name}.rb" text = "class #{class_name_camel(name)}; end" create_single_file(file_name, text) end # @param [String] name def init_gemspec!(name) file_name = "#{name}.gemspec" create_single_file( file_name, plain_gemspec_text(name, class_name_camel(name)) ) end end end end