Top Level Namespace
Defined Under Namespace
Modules: Raykit
Classes: Dir, String
Constant Summary
collapse
- PROJECT =
Raykit::Project.new
- SECRETS =
Raykit::Secrets.new
- REPOSITORIES =
Raykit::Git::Repositories.new("#{Raykit::Environment.get_dev_dir("log")}/Raykit.Git.Repositories.json")
- GIT_DIRECTORY =
Raykit::Git::Directory.new(Rake.application.original_dir)
- NUGET_DIR =
Raykit::Environment::get_dev_dir("nuget")
- PUBLISH_DIR =
Raykit::Environment::get_dev_dir("publish")
- RAYKIT_GLOBALS =
true
- BUFFER_SIZE =
1024
- LOG =
Raykit::Logging.new
- RAKE_DIRECTORY =
Rake.application.original_dir
- MARKDOWN =
Raykit::Markdown.new
Instance Method Summary
collapse
Instance Method Details
#copy_file_to_dir(file, dir) ⇒ Object
#copy_files(src_dir, target_dir, glob) ⇒ Object
96
97
98
|
# File 'lib/raykit.rb', line 96
def copy_files(src_dir, target_dir, glob)
Raykit::FileSystem::copy_files(src_dir, target_dir, glob)
end
|
#dir(name) ⇒ Object
43
44
45
|
# File 'lib/raykit.rb', line 43
def dir(name)
FileUtils.mkdir("artifacts") if (!Dir.exist?(name))
end
|
#make(artifact, command) ⇒ Object
47
48
49
50
51
52
53
54
55
56
57
|
# File 'lib/raykit.rb', line 47
def make(artifact, command)
if (File.exist?(artifact))
puts " #{artifact} exists"
else
cmd = run(command)
if (cmd.exitstatus != 0)
File.delete(artifact) if (File.exist?(artifact))
end
cmd
end
end
|
#make_log(artifact, command) ⇒ Object
59
60
61
62
63
64
65
66
67
68
69
|
# File 'lib/raykit.rb', line 59
def make_log(artifact, command)
if (File.exist?(artifact))
puts " #{artifact} exists"
else
cmd = run(command).log_to_file(artifact)
if (cmd.exitstatus != 0)
File.delete(artifact) if (File.exist?(artifact))
end
cmd
end
end
|
#run(command, quit_on_failure = true) ⇒ Object
35
36
37
|
# File 'lib/raykit.rb', line 35
def run(command, quit_on_failure = true)
Raykit::TopLevel.run(command, quit_on_failure)
end
|
#show(symbol) ⇒ Object
79
80
81
|
# File 'lib/raykit.rb', line 79
def show(symbol)
show_binding(symbol, binding)
end
|
#show_binding(symbol, the_binding) ⇒ Object
83
84
85
|
# File 'lib/raykit.rb', line 83
def show_binding(symbol, the_binding)
show_value symbol.to_s, eval(symbol.to_s, the_binding)
end
|
#show_table(symbols) ⇒ Object
92
93
94
|
# File 'lib/raykit.rb', line 92
def show_table(symbols)
Raykit::Log.show_table(symbols)
end
|
#show_value(name, value) ⇒ Object
87
88
89
90
|
# File 'lib/raykit.rb', line 87
def show_value(name, value)
Raykit::Log.show_value(name, value)
PROJECT.values[name] = value
end
|
#start_task(task_name) ⇒ Object
75
76
77
|
# File 'lib/raykit.rb', line 75
def start_task(task_name)
Raykit::Log.start_task(task_name)
end
|
#tag(name) ⇒ Object
71
72
73
|
# File 'lib/raykit.rb', line 71
def tag(name)
puts Rainbow(": #{name}").blue.bright
end
|
#try(command) ⇒ Object
39
40
41
|
# File 'lib/raykit.rb', line 39
def try(command)
Raykit::TopLevel.run(command, false)
end
|