class RBT::Linux::Debian::CreateControlFile

Constants

NAMESPACE
#

NAMESPACE

#

Public Class Methods

[](i = '') click to toggle source
#

[]

#
# File lib/rbt/linux/debian/create_control_file.rb, line 71
def self.[](i = '')
  self.new(i)
end
new( name_of_the_program = Dir.pwd, run_already = true ) click to toggle source
#

initialize

The first argument is the name of the program.

#
# File lib/rbt/linux/debian/create_control_file.rb, line 36
def initialize(
    name_of_the_program = Dir.pwd, # By default we will obtain information from the current working directory.
    run_already         = true
  )
  reset
  run if run_already
end

Public Instance Methods

create_the_control_file() click to toggle source
#

create_the_control_file

#
# File lib/rbt/linux/debian/create_control_file.rb, line 56
def create_the_control_file
  opnn; e 'Now storing in the file '+sfile(@filename)+'.'
  write_what_into(@_, @filename)
end
reset() click to toggle source
#

reset

#
Calls superclass method RBT::Base#reset
# File lib/rbt/linux/debian/create_control_file.rb, line 47
def reset
  super()
  @_ = ''.dup # <- This is the string that will be stored.
  @filename = 'control'
end
run() click to toggle source
#

run

#
# File lib/rbt/linux/debian/create_control_file.rb, line 64
def run
  create_the_control_file
end