Class: ProconBypassMan::WriteSessionIdCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/procon_bypass_man/commands/write_session_id_command.rb

Class Method Summary collapse

Class Method Details

.executeString

起動すると/tmp がなくなる前提の実装

Returns:

  • (String)

    session_id ラズパイが起動してからshutdownするまで同じ文字列を返す



4
5
6
# File 'lib/procon_bypass_man/commands/write_session_id_command.rb', line 4

def self.execute
  @@session_id ||= "s_#{SecureRandom.uuid}"
end