Sha256: 70555f15ec75469cb523c9fb25af56202b6c9430b8f8cd9b0377e3de7b5b5d5d

Contents?: true

Size: 285 Bytes

Versions: 33

Compression:

Stored size: 285 Bytes

Contents

class ProconBypassMan::WriteSessionIdCommand
  # @return [String] session_id ラズパイが起動してからshutdownするまで同じ文字列を返す
  # 起動すると/tmp がなくなる前提の実装
  def self.execute
    @@session_id ||= "s_#{SecureRandom.uuid}"
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
procon_bypass_man-0.3.12 lib/procon_bypass_man/commands/write_session_id_command.rb
procon_bypass_man-0.3.11 lib/procon_bypass_man/commands/write_session_id_command.rb
procon_bypass_man-0.3.10 lib/procon_bypass_man/commands/write_session_id_command.rb
procon_bypass_man-0.3.9 lib/procon_bypass_man/commands/write_session_id_command.rb
procon_bypass_man-0.3.8.1 lib/procon_bypass_man/commands/write_session_id_command.rb
procon_bypass_man-0.3.8 lib/procon_bypass_man/commands/write_session_id_command.rb
procon_bypass_man-0.3.7 lib/procon_bypass_man/commands/write_session_id_command.rb
procon_bypass_man-0.3.6 lib/procon_bypass_man/commands/write_session_id_command.rb
procon_bypass_man-0.3.5 lib/procon_bypass_man/commands/write_session_id_command.rb
procon_bypass_man-0.3.4 lib/procon_bypass_man/commands/write_session_id_command.rb
procon_bypass_man-0.3.3.1 lib/procon_bypass_man/commands/write_session_id_command.rb
procon_bypass_man-0.3.3 lib/procon_bypass_man/commands/write_session_id_command.rb
procon_bypass_man-0.3.2 lib/procon_bypass_man/commands/write_session_id_command.rb
procon_bypass_man-0.3.1 lib/procon_bypass_man/commands/write_session_id_command.rb
procon_bypass_man-0.3.0 lib/procon_bypass_man/commands/write_session_id_command.rb
procon_bypass_man-0.2.3 lib/procon_bypass_man/commands/write_session_id_command.rb
procon_bypass_man-0.2.2 lib/procon_bypass_man/commands/write_session_id_command.rb
procon_bypass_man-0.2.1 lib/procon_bypass_man/commands/write_session_id_command.rb
procon_bypass_man-0.2.0 lib/procon_bypass_man/commands/write_session_id_command.rb
procon_bypass_man-0.1.23 lib/procon_bypass_man/commands/write_session_id_command.rb