lib/takelage/bit/scope/module.rb in takelage-0.8.1 vs lib/takelage/bit/scope/module.rb in takelage-0.9.0

- old
+ new

@@ -35,9 +35,19 @@ run cmd_bit_scope_add log.info "Added bit remote scope \"#{scope}\" to local bit workspace" end + # Backend method for bit scope inbit. + def bit_scope_inbit + log.debug "Logging in to bit remote server" + + return false unless configured? %w(bit_ssh) + + cmd_bit_scope_login = config.active['bit_ssh'] + run_and_exit cmd_bit_scope_login + end + # Backend method for bit scope list. # @return [String] list of bit scopes def bit_scope_list log.debug "Listing bit remote scopes"