class RBT::CreateRpmSpecFile
Public Class Methods
[](i = '')
click to toggle source
new( commandline_arguments = nil, run_already = true )
click to toggle source
Public Instance Methods
description?()
click to toggle source
determine_the_name_of_the_file()
click to toggle source
load_the_cookbook_dataset()
click to toggle source
reset()
click to toggle source
#¶ ↑
reset (reset tag)¶ ↑
#¶ ↑
Calls superclass method
RBT::Base#reset
# File lib/rbt/package_managers/create_rpm_spec_file.rb, line 41 def reset super() infer_the_namespace # ======================================================================= # # === @name_of_the_program # ======================================================================= # @name_of_the_program = nil # ======================================================================= # # === @description # ======================================================================= # @description = nil end
return_licence()
click to toggle source
return_program_version()
click to toggle source
return_short_desc()
click to toggle source
run()
click to toggle source
#¶ ↑
run (run tag)¶ ↑
#¶ ↑
# File lib/rbt/package_managers/create_rpm_spec_file.rb, line 100 def run determine_the_name_of_the_file load_the_cookbook_dataset _ = ' Name: '+File.basename(@name_of_the_program)+' Version: '+return_program_version+' Release: 1 Summary: '+return_short_desc+' License: '+return_licence+' %description '+description?.to_s+' %prep # we have no source, so nothing here %build cat > hello-world.sh <<EOF #!/usr/bin/bash echo Hello world EOF %install mkdir -p %{buildroot}/usr/bin/ install -m 755 hello-world.sh %{buildroot}/usr/bin/hello-world.sh %files /usr/bin/hello-world.sh %changelog # lets skip this for now ' into = log_dir?+@name_of_the_file opne "Storing into #{sfile(into)} next." write_what_into(_, into) end