Sha256: 1b72ed8ba6b0dbf44b80c0cb563a87c8a2eb6241240abed3d1ca66a7a505a9c4

Contents?: true

Size: 386 Bytes

Versions: 16

Compression:

Stored size: 386 Bytes

Contents

module ShopifyCLI
  module Core
    ##
    # ShopifyCLI::Core::CliVersion checks that the CLI in use is correct for the project.
    #
    class CliVersion
      class << self
        def using_3_0?
          !!cli_3_0_toml_dir
        end

        private

        def cli_3_0_toml_dir
          Utilities.directory("shopify.app.toml", Dir.pwd)
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
shopify-cli-2.36.0 lib/shopify_cli/core/cli_version.rb
shopify-cli-2.35.0 lib/shopify_cli/core/cli_version.rb
shopify-cli-2.34.0 lib/shopify_cli/core/cli_version.rb
shopify-cli-2.33.1 lib/shopify_cli/core/cli_version.rb
shopify-cli-2.33.0 lib/shopify_cli/core/cli_version.rb
shopify-cli-2.32.1 lib/shopify_cli/core/cli_version.rb
shopify-cli-2.32.0 lib/shopify_cli/core/cli_version.rb
shopify-cli-2.31.0 lib/shopify_cli/core/cli_version.rb
shopify-cli-2.30.0 lib/shopify_cli/core/cli_version.rb
shopify-cli-2.29.0 lib/shopify_cli/core/cli_version.rb
shopify-cli-2.28.0 lib/shopify_cli/core/cli_version.rb
shopify-cli-2.27.0 lib/shopify_cli/core/cli_version.rb
shopify-cli-2.26.0 lib/shopify_cli/core/cli_version.rb
shopify-cli-2.25.0 lib/shopify_cli/core/cli_version.rb
shopify-cli-2.24.0 lib/shopify_cli/core/cli_version.rb
shopify-cli-2.23.0 lib/shopify_cli/core/cli_version.rb