lib/takeltau/ship/container/cli.rb in takeltau-0.44.19 vs lib/takeltau/ship/container/cli.rb in takeltau-0.44.23

- old
+ new

@@ -44,10 +44,23 @@ def command(*args) say ship_container_command args end # + # ship container hostname + # + desc 'hostname', 'Print the takelship hostname' + long_desc <<-LONGDESC.gsub("\n", "\x5") + Print the hostname of the takelship container. + LONGDESC + def hostname + say _ship_container_lib_ship_hostname + exit false unless ship_container_check_existing + true + end + + # # ship container list # desc 'list', 'List takelships' long_desc <<-LONGDESC.gsub("\n", "\x5") List takelship containers. @@ -87,9 +100,22 @@ long_desc <<-LONGDESC.gsub("\n", "\x5") Run a podman command as user podman in a takelship container. LONGDESC def podman(*args) say ship_container_podman args + end + + # + # ship container shipdir + # + desc 'shipdir', 'Print the takelship project root dir' + long_desc <<-LONGDESC.gsub("\n", "\x5") + Print the project root directory of the takelship container. + LONGDESC + def shipdir + say config.active['project_root_dir'] + exit false unless ship_container_check_existing + true end # # ship container sudo #