Module: SSHTunnel
- Defined in:
- lib/ssh-hull.rb,
lib/ssh-hull/cli.rb,
lib/ssh-hull/logger.rb,
lib/ssh-hull/version.rb,
lib/ssh-hull/ui/application.rb,
lib/ssh-hull/ui/models/host.rb,
lib/ssh-hull/ui/status_icon.rb,
lib/ssh-hull/ui/models/config.rb,
lib/ssh-hull/ui/models/tunnel.rb,
lib/ssh-hull/ui/forms/host_form.rb,
lib/ssh-hull/ui/forms/tunnel_form.rb,
lib/ssh-hull/ui/windows/about_window.rb,
lib/ssh-hull/ui/forms/application_form.rb,
lib/ssh-hull/ui/windows/hosts/new_window.rb,
lib/ssh-hull/ui/windows/hosts/edit_window.rb,
lib/ssh-hull/ui/helpers/common/form_helper.rb,
lib/ssh-hull/ui/helpers/host_window_helper.rb,
lib/ssh-hull/ui/windows/application_window.rb,
lib/ssh-hull/ui/windows/tunnels/new_window.rb,
lib/ssh-hull/ui/helpers/common/modal_helper.rb,
lib/ssh-hull/ui/windows/hosts/delete_window.rb,
lib/ssh-hull/ui/windows/tunnels/edit_window.rb,
lib/ssh-hull/ui/helpers/tunnel_window_helper.rb,
lib/ssh-hull/ui/helpers/common/toolbar_helper.rb,
lib/ssh-hull/ui/windows/tunnels/delete_window.rb,
lib/ssh-hull/ui/helpers/common/minimize_helper.rb,
lib/ssh-hull/ui/helpers/common/tree_view_helper.rb,
lib/ssh-hull/ui/helpers/application_window_helper.rb,
lib/ssh-hull/ui/helpers/common/translation_helper.rb
Defined Under Namespace
Modules: UI, VERSION
Classes: CLI, Logger
Constant Summary
collapse
- ROOT_PATH =
Pathname.new File.expand_path('..', __dir__)
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
82
83
84
|
# File 'lib/ssh-hull.rb', line 82
def self.config
@config
end
|
.current_locale ⇒ Object
72
73
74
|
# File 'lib/ssh-hull.rb', line 72
def self.current_locale
Gtk.default_language.to_s.split('-').first.to_sym
end
|
.gem_version ⇒ Object
5
6
7
|
# File 'lib/ssh-hull/version.rb', line 5
def self.gem_version
Gem::Version.new VERSION::STRING
end
|
.load_config(file) ⇒ Object
.locales_path ⇒ Object
67
68
69
|
# File 'lib/ssh-hull.rb', line 67
def self.locales_path
root_path.join('config', 'locales', '*.yml')
end
|
.logger ⇒ Object
87
88
89
|
# File 'lib/ssh-hull.rb', line 87
def self.logger
@logger ||= SSHTunnel::Logger.new($stdout, level: Logger::INFO)
end
|
.resources_bin ⇒ Object
62
63
64
|
# File 'lib/ssh-hull.rb', line 62
def self.resources_bin
@resources_bin ||= Pathname.new(Dir.tmpdir).join('gresources.bin')
end
|
.resources_path ⇒ Object
52
53
54
|
# File 'lib/ssh-hull.rb', line 52
def self.resources_path
@resources_path ||= root_path.join('resources')
end
|
.resources_xml ⇒ Object
57
58
59
|
# File 'lib/ssh-hull.rb', line 57
def self.resources_xml
@resources_xml ||= resources_path.join('gresources.xml')
end
|
.root_path ⇒ Object
47
48
49
|
# File 'lib/ssh-hull.rb', line 47
def self.root_path
ROOT_PATH
end
|