Module: RocketApi::Commands::Helper

Included in:
RocketCommands
Defined in:
lib/rocket_api/commands/helper.rb

Instance Method Summary collapse

Instance Method Details

#bin!(name) ⇒ Object

Parameters:

  • name (String)


10
11
12
# File 'lib/rocket_api/commands/helper.rb', line 10

def bin!(name)
  create_single_file("bin/#{name}", "", exe: true)
end

#gem_file!(_name) ⇒ Object

Parameters:

  • _name (String)


25
26
27
# File 'lib/rocket_api/commands/helper.rb', line 25

def gem_file!(_name)
  create_single_file("Gemfile", gemfile_text)
end

#gitignore!(_name) ⇒ Object

Parameters:

  • _name (String)


15
16
17
# File 'lib/rocket_api/commands/helper.rb', line 15

def gitignore!(_name)
  create_single_file(".gitignore", gitignore_text)
end

#rake_file!(_name) ⇒ Object

Parameters:

  • _name (String)


20
21
22
# File 'lib/rocket_api/commands/helper.rb', line 20

def rake_file!(_name)
  create_single_file("Rakefile", rake_text)
end

#readme!(name) ⇒ Object

Parameters:

  • name (String)


5
6
7
# File 'lib/rocket_api/commands/helper.rb', line 5

def readme!(name)
  create_single_file("README.md", readme_text(name))
end