Class: Tuya::System

Inherits:
Object
  • Object
show all
Includes:
Pod::Config::Mixin, Singleton
Defined in:
lib/tuya/cli/odm/system.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSystem

Returns a new instance of System.



16
17
18
19
20
21
# File 'lib/tuya/cli/odm/system.rb', line 16

def initialize
  @user = ENV["HOME"]
  @pod_config = config

  @group = Tuya::Config.local_config @user
end

Instance Attribute Details

#gitlab_configObject

Returns the value of attribute gitlab_config.



14
15
16
# File 'lib/tuya/cli/odm/system.rb', line 14

def gitlab_config
  @gitlab_config
end

#groupObject

Returns the value of attribute group.



13
14
15
# File 'lib/tuya/cli/odm/system.rb', line 13

def group
  @group
end

#pod_configObject

Returns the value of attribute pod_config.



12
13
14
# File 'lib/tuya/cli/odm/system.rb', line 12

def pod_config
  @pod_config
end

#userObject

Returns the value of attribute user.



11
12
13
# File 'lib/tuya/cli/odm/system.rb', line 11

def user
  @user
end

Class Method Details

.lintObject



6
7
8
9
# File 'lib/tuya/cli/odm/system.rb', line 6

def self.lint
  puts "current ruby version: #{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}".green
  puts Pod::VERSION
end